File: rules

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

export PYBUILD_NAME=pyprof2calltree
export PYBUILD_TEST_PYTEST=1

%:
	dh $@ --buildsystem=pybuild

override_dh_installman:
	mkdir debian/tmp
	sed -e 's/Overview/DESCRIPTION/' \
	    -e '0,/========/s//===========/' \
	    -e 's/(screenshots_)//' \
	    -e 's/Command line usage/OPTIONS/' \
	    -e '/Change log/Q' README.rst > debian/tmp/manpage-body.rst
	cat debian/rst2man.header debian/tmp/manpage-body.rst \
	    > debian/tmp/pyprof2calltree.rst
	rst2man --no-generator debian/tmp/pyprof2calltree.rst \
	    > debian/tmp/pyprof2calltree.1
	dh_installman