From cf2720093fe3fae20d2c8378345d2c1c6d970815 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 1 Nov 2013 14:29:20 +0800 Subject: update scripts --- scripts/Makefile.data | 2 +- scripts/utils.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/Makefile.data b/scripts/Makefile.data index 7929e97..f397d5d 100644 --- a/scripts/Makefile.data +++ b/scripts/Makefile.data @@ -5,7 +5,7 @@ pinyins.txt: python3 genpinyins.py -update-header: +update-header: pinyins.txt python3 genpinyinheader.py > ../src/storage/pinyin_parser_table.h python3 gendoublepinyinheader.py > ../src/storage/double_pinyin_table.h python3 genbopomofoheader.py > ../src/storage/chewing_table.h diff --git a/scripts/utils.py b/scripts/utils.py index 01bdbc7..723f58c 100644 --- a/scripts/utils.py +++ b/scripts/utils.py @@ -39,3 +39,4 @@ def expand_file(filename, get_table_content): print(get_table_content(tablename)) else: print(line) + infile.close() -- cgit