[DRE-commits] [ruby-adsf] 08/15: use help2man to generate manpage

Cédric Boutillier boutil at moszumanska.debian.org
Fri Jun 3 21:17:56 UTC 2016


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

boutil pushed a commit to branch master
in repository ruby-adsf.

commit 693cd40023c5d5d901063dba43e2cac8fe14c994
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri Jun 3 22:48:19 2016 +0200

    use help2man to generate manpage
---
 debian/adsf.h2m |  7 +++++++
 debian/control  |  1 +
 debian/rules    | 11 +++++++++++
 3 files changed, 19 insertions(+)

diff --git a/debian/adsf.h2m b/debian/adsf.h2m
new file mode 100644
index 0000000..c3adc2b
--- /dev/null
+++ b/debian/adsf.h2m
@@ -0,0 +1,7 @@
+[name]
+adsf \- a dead simple fileserver
+
+[description]
+adsf (A Dead Simple Fileserver) is a tiny web server that can be spawned in any
+directory to serve static files. It can be used programmatically in Rack and
+other Ruby applications.
diff --git a/debian/control b/debian/control
index f4a883b..82ecb67 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
 Uploaders: Cédric Boutillier <boutil at debian.org>
 Build-Depends: debhelper (>= 9~),
                gem2deb,
+               help2man,
                ruby-rack (>= 1.0.0)
 Standards-Version: 3.9.8
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-adsf.git
diff --git a/debian/rules b/debian/rules
index 3454d59..8533864 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,17 @@
 #!/usr/bin/make -f
 
 export GEM2DEB_TEST_RUNNER = --check-dependencies
+UPSTREAM_VERSION = $(shell dpkg-parsechangelog | awk '{ if ($$1 == "Version:") { print($$2) } }' | cut -d - -f 1)
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+
+override_dh_installman:
+	INLINEDIR=. help2man --no-info --include=debian/adsf.h2m \
+		  -h "-I lib/ bin/adsf -h"  --version-string $(UPSTREAM_VERSION) /usr/bin/ruby  > adsf.1
+	dh_installman
+
+override_dh_clean:
+	rm -f adsf.1
+	dh_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-adsf.git



More information about the Pkg-ruby-extras-commits mailing list