[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/02: Generate man pages for lintian's perl modules



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 05d7ef6e0829b8a77b944db5aa4485100df5b83f
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Apr 23 11:49:16 2016 +0000

    Generate man pages for lintian's perl modules
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 .gitignore       | 2 +-
 debian/changelog | 3 +++
 debian/manpages  | 2 +-
 debian/rules     | 8 ++++++--
 4 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/.gitignore b/.gitignore
index 35a8038..5097595 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,7 +12,7 @@
 /doc/lintian.html/
 /doc/lintian.txt
 /l10n/
-/man/man1/
+/man/man*/
 /runtests
 *.iml
 /.idea/
diff --git a/debian/changelog b/debian/changelog
index a26465b..26970b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -108,6 +108,9 @@ lintian (2.5.44) UNRELEASED; urgency=medium
   * debian/control:
     + [AB] Declare compliance with Debian Policy 3.9.8. (No other changes
       required.)
+  * debian/{manpages,rules}:
+    + [JW,NT] Generate and install manpages of Lintian's perl modules.
+      (Closes: #816862)
 
   * doc/lintian.xml:
     + [NT] Document the new classification tags.
diff --git a/debian/manpages b/debian/manpages
index c45f27d..a34ee8b 100644
--- a/debian/manpages
+++ b/debian/manpages
@@ -1,2 +1,2 @@
 man/man1/*.1
-
+man/man3/*.3
diff --git a/debian/rules b/debian/rules
index e6cc3d3..ff653ea 100755
--- a/debian/rules
+++ b/debian/rules
@@ -74,7 +74,7 @@ generate-docs-stamp: $(docsource)
 	dh_testdir
 	cd doc && LC_ALL=C docbook2html  -V "%use-id-as-filename%" -o lintian.html lintian.xml
 	cd doc && LC_ALL=C jw -b txt lintian.xml
-	mkdir -p man/man1/
+	mkdir -p man/man1/ man/man3/
 	private/generate-lintian-pod | \
 		pod2man --name lintian --center "Debian Package Checker" --section=1 > man/man1/lintian.1
 	set -e ; for POD in $(pod2mansources) ; do \
@@ -82,6 +82,10 @@ generate-docs-stamp: $(docsource)
 		BASENAME=$$(basename "$$POD" .pod) ; \
 		pod2man --section=1 "$$POD" > "$$DIR/man1/$$BASENAME".1 ; \
 	done
+	set -e ; for POD in $$(find lib/Lintian lib/Test -type f '!' -path '*/Internal/*' '!' -path '*/Output/*' '!' -path '*/Tag/TextUtil.pm'  ) ; do \
+		BASENAME=$$(echo "$$POD" | perl -pe 's@^lib/@@; s@/@::@g; s/\.pm$$//') ; \
+		pod2man --section=3 "$$POD" > "man/man3/$$BASENAME".3 ; \
+	done
 	private/generate-html-docs doc/api.html > /dev/null
 	touch $@
 
@@ -100,7 +104,7 @@ override_dh_clean: $(neededfiles)
 ifneq ($(CLEAN_TEST_WORK_DIR),0)
 	rm -rf "$(TEST_WORK_DIR)"
 endif
-	rm -rf man/man1/ l10n/
+	rm -rf man/man1/ man/man3/ l10n/
 	dh_clean -X "$(TEST_WORK_DIR)"
 
 override_dh_install:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: