summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Shadura <andrew.shadura@collabora.co.uk>2020-12-02 19:19:26 +0100
committerAndrej Shadura <andrew.shadura@collabora.co.uk>2020-12-02 19:27:41 +0100
commit6fcebd9d43a65f2dc635bccfb9fa890ed1d81313 (patch)
tree34d149df548c55704081ef66b84ff777e05eb265
parent57134cf50c9453a123ac428288e8d97f35ed1577 (diff)
Rebuild the manpage when we can
-rw-r--r--debian/clean1
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules11
3 files changed, 13 insertions, 0 deletions
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..50b2a10
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+doc/man/debos.md
diff --git a/debian/control b/debian/control
index 9c3aedb..1a53d0c 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Build-Depends:
golang-go-flags-dev,
golang-gopkg-freddierice-go-losetup.v1-dev,
golang-yaml.v2-dev,
+ pandoc <!nodoc>,
Standards-Version: 4.5.0
Rules-Requires-Root: no
Homepage: https://github.com/go-debos/debos
diff --git a/debian/rules b/debian/rules
index fe01e8a..3d9d456 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,10 +3,21 @@
%:
dh $@ --buildsystem=golang --with=golang
+override_dh_auto_clean:
+ dh_auto_clean
+ [ -f doc/man/debos.1.upstream ] && mv doc/man/debos.1.upstream doc/man/debos.1
+
override_dh_auto_test:
# Disable auto tests at build time
# debos requires access to /dev/kvm for tests
:
+ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
+override_dh_auto_build:
+ dh_auto_build
+ mv doc/man/debos.1 doc/man/debos.1.upstream
+ cd doc/man && ./create_manpage.sh
+endif
+
override_dh_auto_install:
dh_auto_install -- --no-source