File: rules

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

include /usr/share/dpkg/pkg-info.mk

export PYBUILD_NAME=pygtail

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

override_dh_auto_install:
	dh_auto_install
	# Move the python 3 script to the pygtail package
	mkdir -p debian/pygtail/usr/bin
	mv debian/python3-pygtail/usr/bin/pygtail debian/pygtail/usr/bin/

override_dh_installman:
	PYTHONPATH="." help2man --no-info --version-string="$(DEB_VERSION_UPSTREAM)" \
		--name="read log file lines that have not been read" \
		--output=debian/pygtail.1 \
		./debian/pygtail/usr/bin/pygtail
	dh_installman