[med-svn] [daligner] 02/09: Package manpages

Afif Elghraoui afif-guest at moszumanska.debian.org
Sat Aug 29 20:26:29 UTC 2015


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

afif-guest pushed a commit to branch master
in repository daligner.

commit ede2cbc9ccc5657839ba8cf75302db246d453e43
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Aug 29 12:49:54 2015 -0700

    Package manpages
---
 debian/control               |  3 ++-
 debian/daligner-doc/Makefile | 16 ++++++++++++++++
 debian/manpages              |  1 +
 debian/rules                 |  8 ++++++++
 4 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 7fb8ea7..01c74be 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,8 @@ Section: science
 Priority: optional
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Afif Elghraoui <afif at ghraoui.name>
-Build-Depends: debhelper (>= 9)
+Build-Depends: debhelper (>= 9),
+	       pandoc
 Standards-Version: 3.9.6
 Homepage: https://github.com/thegenemyers/DALIGNER
 Vcs-Git: git://anonscm.debian.org/debian-med/daligner.git
diff --git a/debian/daligner-doc/Makefile b/debian/daligner-doc/Makefile
new file mode 100644
index 0000000..2f8a397
--- /dev/null
+++ b/debian/daligner-doc/Makefile
@@ -0,0 +1,16 @@
+
+MANPAGES = $(basename $(wildcard  *.1.md))
+
+all: $(MANPAGES)
+
+%.1: %.1.md
+	pandoc -s -f markdown -t man $< > $@
+
+clean:
+	$(RM) $(MANPAGES)
+
+check:
+	MANROFFSEQ='' MANWIDTH=80 \
+	  man --warnings -E UTF-8 -l -Tutf8 -Z $< > /dev/null
+
+.PHONY: clean
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..7330ae7
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/daligner-doc/*.1
diff --git a/debian/rules b/debian/rules
index e8cd68b..402b739 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,3 +11,11 @@ CFLAGS := $(CPPFLAGS) $(CFLAGS)
 
 %:
 	dh $@ --parallel
+
+override_dh_auto_build:
+	dh_auto_build
+	$(MAKE) -C debian/daligner-doc
+
+override_dh_auto_clean:
+	dh_auto_clean
+	$(MAKE) -C debian/daligner-doc clean

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



More information about the debian-med-commit mailing list