d/rules: Remove all custom rule modifications
Boyuan Yang
5 years ago
3 | 3 | %: |
4 | 4 | dh $@ |
5 | 5 | |
6 | override_dh_auto_clean: | |
7 | dh_auto_clean | |
8 | rm -rf data essay.kct default.custom.yaml | |
9 | ||
10 | override_dh_auto_build: | |
11 | # create a default.custom.yaml here, and use it | |
12 | # to build all the schemas | |
13 | echo "patch:" > default.custom.yaml | |
14 | echo " schema_list:" >> default.custom.yaml | |
15 | find -name '*.schema.yaml' \ | |
16 | | xargs -l1 basename -s .schema.yaml \ | |
17 | | perl -pe 's/^/ - schema: /' \ | |
18 | | sort | uniq >> default.custom.yaml | |
19 | mkdir -p data | |
20 | cp -v default.custom.yaml data | |
21 | ||
22 | cp -v extra/*.yaml data | |
23 | dh_auto_build | |
24 | # restore the original copy of default.yaml | |
25 | cp -v default.yaml data | |
26 | rm -fv data/default.custom.yaml | |
27 | ||
28 | 6 | override_dh_install: |
29 | 7 | dh_install --fail-missing |