Codebase list brise / 5a17711
reduce building time gyx authored 9 years ago Guo Yixuan committed 9 years ago
1 changed file(s) with 16 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
55
66 override_dh_auto_clean:
77 dh_auto_clean
8 rm -rf data essay.kct
8 rm -rf data essay.kct default.custom.yaml
99
1010 override_dh_auto_build:
1111 # librime 1.2 needs essay.txt
1212 mkdir -p data
1313 cp -v essay.txt data
14
15 # create a default.custom.yaml here, and use it
16 # to build all the schemas
17 echo "patch:" > default.custom.yaml
18 echo " schema_list:" >> default.custom.yaml
19 find -name '*.schema.yaml' \
20 | xargs -l1 basename -s .schema.yaml \
21 | perl -pe 's/^/ - schema: /' \
22 | sort | uniq >> default.custom.yaml
23 cp -v default.custom.yaml data
24
25 cp -v extra/*.yaml data
1426 dh_auto_build
15 cp -v extra/*.yaml data
16 cd data; \
17 for schema in *.schema.yaml; \
18 do \
19 rime_deployer --compile $$schema; \
20 done; \
21 rm -fv *.prism.txt *.table.txt # unnecessary files
27 # restore the original copy of default.yaml
28 cp -v default.yaml data
29 rm -fv data/default.custom.yaml
2230
2331 override_dh_install:
2432 dh_install --fail-missing