Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
4 #export DH_VERBOSE = 1
5
6 export PYBUILD_NAME=unicodedata2
7
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 %:
11 dh $@ --buildsystem=pybuild
12
13 execute_before_dh_auto_build:
14 # Generate unicode data headers
15 mkdir -p data
16 unicode_ver=`dpkg -s unicode-data | grep '^Version: ' | sed 's/^Version: \(.*\)-.*$$/\1/'`; \
17 for i in `ls /usr/share/unicode/*.txt | xargs -n1 basename`; do \
18 ln -s "/usr/share/unicode/$${i}" "data/$${i%.txt}-$${unicode_ver}.txt" ; \
19 done
20 bunzip2 -ckd /usr/share/unicode/Unihan_NumericValues.txt.bz2 > data/Unihan_NumericValues.txt
21 python3 makeunicodedata.py
22 rm -rf data
23
24 override_dh_gencontrol:
25 dh_gencontrol -- -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W unicode-data)"