minor fixes on src gen scripts

pull/2438/head
Ebrahim Byagowi 5 years ago
parent 6058ede3ae
commit 9737170b6f
  1. 2
      src/gen-harfbuzzcc.py
  2. 4
      src/gen-hb-version.py

@ -4,6 +4,8 @@
import os, re, sys
os.chdir (os.path.dirname (__file__))
if len (sys.argv) < 3:
sys.exit (__doc__)

@ -4,6 +4,8 @@
import os, re, sys
os.chdir (os.path.dirname (__file__))
if len (sys.argv) < 4:
sys.exit(__doc__)
@ -26,4 +28,4 @@ with open (input, "r", encoding='utf-8') as input_file:
# write only if is changed
if generated != current:
with open (output, "wb") as output_file:
output_file.write ()
output_file.write (generated)

Loading…
Cancel
Save