[Git][haskell-team/haskell-devscripts][master] Build manual pages in a sub-directory; prevents installation of manual pages in /usr/bin.
Felix Lechner (@lechner)
gitlab at salsa.debian.org
Fri Apr 8 23:29:35 BST 2022
Felix Lechner pushed to branch master at Debian Haskell Group / haskell-devscripts
Commits:
37e04506 by Felix Lechner at 2022-04-08T15:28:29-07:00
Build manual pages in a sub-directory; prevents installation of manual pages in /usr/bin.
Commit f48e97e1 was a bit over eager. It resulted in those Lintian hints:
W: haskell-devscripts-minimal: executable-not-elf-or-script usr/bin/dh_haskell_blurbs.1
W: haskell-devscripts-minimal: executable-not-elf-or-script usr/bin/dh_haskell_depends.1
W: haskell-devscripts-minimal: executable-not-elf-or-script usr/bin/dh_haskell_provides.1
W: haskell-devscripts-minimal: executable-not-elf-or-script usr/bin/dh_haskell_shlibdeps.1
W: haskell-devscripts-minimal: no-manual-page usr/bin/dh_haskell_blurbs.1
W: haskell-devscripts-minimal: no-manual-page usr/bin/dh_haskell_depends.1
W: haskell-devscripts-minimal: no-manual-page usr/bin/dh_haskell_provides.1
W: haskell-devscripts-minimal: no-manual-page usr/bin/dh_haskell_shlibdeps.1
This commit fixes them.
- - - - -
2 changed files:
- debian/manpages
- debian/rules
Changes:
=====================================
debian/manpages
=====================================
@@ -1,4 +1,4 @@
-dh_haskell_provides.1
-dh_haskell_depends.1
-dh_haskell_shlibdeps.1
-dh_haskell_blurbs.1
+manual/dh_haskell_provides.1
+manual/dh_haskell_depends.1
+manual/dh_haskell_shlibdeps.1
+manual/dh_haskell_blurbs.1
=====================================
debian/rules
=====================================
@@ -3,6 +3,7 @@
# defines DEB_VERSION
include /usr/share/dpkg/pkg-info.mk
+manual_dir := manual
manual_pages := $(shell cat debian/manpages)
pod2man := pod2man --center 'Haskell devscripts documentation' --release 'Haskell devscripts $(DEB_VERSION)'
@@ -11,6 +12,7 @@ pod2man := pod2man --center 'Haskell devscripts documentation' --release 'Haskel
.PHONY: after_dh_auto_build
execute_after_dh_auto_build:
+ -mkdir -p $(manual_dir)
set -e ; for MANUAL_PAGE in $(manual_pages) ; do \
BASENAME=$$(basename "$$MANUAL_PAGE" .1) ; \
$(pod2man) "$$BASENAME" > "$$MANUAL_PAGE" ; \
@@ -19,3 +21,4 @@ execute_after_dh_auto_build:
.PHONY: after_dh_auto_clean
execute_after_dh_auto_clean:
rm -f $(manual_pages)
+ -rmdir $(manual_dir)
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/37e0450607c4ab117ad48c8fb7a5c12e71047e8d
--
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/37e0450607c4ab117ad48c8fb7a5c12e71047e8d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20220408/5de061f7/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list