From f51b8c4e8dde5533d1ca7e6f88d6cbfab781add5 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Tue, 29 May 2018 18:31:40 +0200 Subject: [PATCH] Usage pandoc for generate man page --- debian/changelog | 6 ++++++ debian/control | 2 +- debian/rules | 10 ++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index a1081b3..962e54d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +bkctld (1.5.0-2) unstable; urgency=medium + + * Use pandoc for generate man page + + -- Victor Laborie Tue, 29 May 2018 18:30:29 +0200 + bkctld (1.5.0-1) unstable; urgency=medium * Refactoring of logging and notification diff --git a/debian/control b/debian/control index 8445466..32260b0 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: bkctld Section: utils Priority: optional Maintainer: Victor Laborie -Build-Depends: debhelper (>= 9), dh-exec +Build-Depends: debhelper (>= 9), dh-exec, pandoc Standards-Version: 4.0.0 Package: bkctld diff --git a/debian/rules b/debian/rules index 2d33f6a..bec9f30 100755 --- a/debian/rules +++ b/debian/rules @@ -1,4 +1,14 @@ #!/usr/bin/make -f +DEBIAN_VERSION := $(shell dpkg-parsechangelog| sed -n -e 's/^Version: //p') +DEBIAN_DATE := $(shell dpkg-parsechangelog| sed -n -e 's/^Date: //p') + +build: + pandoc -f markdown -t man docs/usage.md --template default.man -V title=bkctld -V section=8 -V date="${DEBIAN_DATE}" -V footer="${DEBIAN_VERSION}" -V header="bkctld man page" -o docs/bkctld.8 + +override_dh_clean: + dh_clean + rm -f docs/bkctld.8 + %: dh $@