mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-25 08:51:07 +01:00
minor fixes on src gen scripts
This commit is contained in:
1 parent
6058ede3ae
commit
9737170b6f
2 files changed
+5
-1
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user