| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export DH_VERBOSE=1 |
| 4 |
|
| 5 |
%: |
| 6 |
dh $@ --buildsystem=pybuild |
| 7 |
|
| 8 |
execute_after_dh_auto_install: |
| 9 |
for i in debian/python3-freesas/usr/bin/* ; \ |
| 10 |
do PYTHONPATH=$$(pybuild --print build_dir --interpreter python3) \ |
| 11 |
HOME=$(CURDIR)/_build PATH=_build/bin:$$PATH \ |
| 12 |
help2man --output=$$(basename $$i).1 \ |
| 13 |
--version-string=$$(dpkg-parsechangelog -S Version | sed s/-[^-]*$$//) \ |
| 14 |
--help-option --help --no-discard-stderr $$i ; \ |
| 15 |
done |
| 16 |
|
| 17 |
override_dh_auto_test: |
| 18 |
# skipped need internet access |
| 19 |
# dh_auto_test -- -s custom --test-args="PYTHONPATH={build_dir} {interpreter} -c 'import freesas.test, sys; sys.exit(freesas.test.run_tests())'" |