File: rules

package info (click to toggle)
con-duct 0.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 500 kB
  • sloc: python: 3,372; sh: 22; makefile: 16
file content (22 lines) | stat: -rwxr-xr-x 614 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /usr/bin/make -f

export PYBUILD_NAME=con-duct
export PYBUILD_BEFORE_TEST=chmod +x {dir}/test/data/spawn_children.sh

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_installman: build/duct.1
	dh_installman

build/duct.1:
	: # Generate a manpage using help2man
	mkdir -p build
	cp -p src/con_duct/__main__.py build/duct
	help2man --no-info --no-discard-stderr \
		-n "lightweight wrapper that collects execution data for a command" \
		./build/duct >| build/duct.1
	rm -f build/duct
	: # Verify that manpage generated nicely -- no Errors reported
	grep -q 'ImportError:' build/duct.1 && exit 1 || :