Skip to content
Snippets Groups Projects
Commit 4238ef09 authored by Stefano Rivera's avatar Stefano Rivera
Browse files

debian/rules: Use pkg-info.mk to determine version in generate_manpages.

parent 3378489e
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,9 @@ python-argcomplete (3.1.4-1) UNRELEASED; urgency=medium
required.
* Add autopkgtest.
* Clean correctly. (Closes: #1046886)
* debian/rules: set -e in generate_manpages.
* debian/rules generate_manpages:
- set -e
- Use pkg-info.mk to determine version.
-- Stefano Rivera <stefanor@debian.org> Sat, 04 Nov 2023 10:33:51 +0200
......
......@@ -17,9 +17,9 @@ unexport LC_ALL
%:
dh $@ --with python3 --buildsystem=pybuild
include /usr/share/dpkg/pkg-info.mk
generate_manpages:
set -e ; \
VERSION=$$(python3 setup.py -V) ; \
for file in \
activate-global-python-argcomplete \
python-argcomplete-check-easy-install-script \
......@@ -27,7 +27,7 @@ generate_manpages:
do \
cp -f scripts/$$file debian/pregenerated_manpages/$$file ; \
chmod a+x debian/pregenerated_manpages/$$file ; \
PYTHONPATH=. help2man --version-string="$$VERSION" \
PYTHONPATH=. help2man --version-string="$(DEB_VERSION)" \
--no-info --include=debian/help2man.include \
--name "$$file - argcomplete utility script" \
-o debian/pregenerated_manpages/$$file.1 --no-discard-stderr \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment