[DRE-commits] [rerun] 06/12: Build manpage with asciidoctor, straight from the upstream README.md
Antonio Terceiro
terceiro at moszumanska.debian.org
Mon May 9 01:18:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository rerun.
commit 0901f5db0ebb82366598a239189ff9946abef0f3
Author: Antonio Terceiro <terceiro at softwarelivre.org>
Date: Sun May 8 21:35:54 2016 -0300
Build manpage with asciidoctor, straight from the upstream README.md
---
debian/changelog | 1 +
debian/control | 1 +
debian/rules | 13 +++++++++++++
3 files changed, 15 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 0c907ba..24c9ca5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ rerun (0.11.0-1) UNRELEASED; urgency=medium
* debian/patches/0002-Port-to-listen-3.patch: remove, applied upstream.
* Stop building manpages with ruby-ronn which depends on a deprecated
library.
+ * Build manpage with asciidoctor, straight from the upstream README.md
-- Antonio Terceiro <terceiro at debian.org> Wed, 16 Mar 2016 17:14:58 -0300
diff --git a/debian/control b/debian/control
index 204b619..c01d086 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Antonio Terceiro <terceiro at debian.org>
Build-Depends: debhelper (>= 9~),
gem2deb,
ruby-listen (>= 3),
+ asciidoctor,
Standards-Version: 3.9.7
Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/rerun.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/rerun.git
diff --git a/debian/rules b/debian/rules
index 3454d59..9dac161 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,3 +4,16 @@ export GEM2DEB_TEST_RUNNER = --check-dependencies
%:
dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_build: rerun.1
+ dh_auto_build
+
+rerun.1: rerun.adoc
+ asciidoctor --backend manpage --out-file $@ $<
+
+override_dh_auto_clean:
+ $(RM) rerun.1 rerun.adoc
+ dh_auto_clean
+
+rerun.adoc: README.md
+ (echo '1a :doctype: manpage'; sed -e '/^#[ ]*Installation/,/^[^#]/ d; s/^##\(.*\)/## \U\1/' README.md) > $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/rerun.git
More information about the Pkg-ruby-extras-commits
mailing list