File: rules

package info (click to toggle)
freesas 2026.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,348 kB
  • sloc: python: 8,381; sh: 297; makefile: 125; ansic: 10
file content (19 lines) | stat: -rwxr-xr-x 669 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export DH_VERBOSE=1

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_install:
	for i in debian/python3-freesas/usr/bin/* ; \
	do PYTHONPATH=$$(pybuild --print build_dir --interpreter python3) \
	   HOME=$(CURDIR)/_build PATH=_build/bin:$$PATH \
	   help2man --output=$$(basename $$i).1 \
	            --version-string=$$(dpkg-parsechangelog -S Version | sed s/-[^-]*$$//) \
	            --help-option --help --no-discard-stderr $$i ; \
	done

override_dh_auto_test:
# skipped need internet access
#	dh_auto_test -- -s custom --test-args="PYTHONPATH={build_dir} {interpreter} -c 'import freesas.test, sys; sys.exit(freesas.test.run_tests())'"