
Test plan: - Make sure huxley tests, jasmine tests, make build, make metrics, make test all still work. Auditors: alpert
18 lines
436 B
Python
Executable File
18 lines
436 B
Python
Executable File
#!/usr/bin/env python2
|
|
|
|
import sys
|
|
|
|
with open("../src/fontMetrics.js", "r") as metrics:
|
|
old_lines = file.readlines(metrics)
|
|
|
|
replace = sys.stdin.read()
|
|
|
|
with open("../src/fontMetrics.js", "w") as output:
|
|
for line in old_lines:
|
|
if line.startswith("var metricMap"):
|
|
output.write("var metricMap = ")
|
|
output.write(replace)
|
|
output.write(";\n")
|
|
else:
|
|
output.write(line)
|