File: rules

package info (click to toggle)
yarsync 0.1.1%2Bdeb-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 624 kB
  • sloc: python: 1,905; makefile: 13
file content (18 lines) | stat: -rwxr-xr-x 683 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f
#export DH_VERBOSE = 1
export PYBUILD_NAME=yarsync
%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
	# Fix directory perms after tests
	find .pybuild -type d -name test_dir_read_only | xargs chmod u+w
	find .pybuild -type d -name forbidden | xargs chmod u+w
endif

override_dh_auto_clean:
	if [ -d .pybuild ]; then find .pybuild -type d -name test_dir_read_only | xargs chmod u+w || echo "No test_dir_read_only, no perm change"; fi
	if [ -d .pybuild ]; then find .pybuild -type d -name forbidden | xargs chmod u+w || echo "No test_dir_read_only, no perm change"; fi
	dh_auto_clean