From 28996534452c17c2165074d55b4694f26e0204d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org> Date: Fri, 2 Oct 2020 15:43:33 +0200 Subject: [PATCH] debian: Add librem5-flash-image manpage based on help output --- debian/clean | 1 + debian/control | 1 + debian/librem5-host.manpages | 1 + debian/rules | 8 ++++++++ 4 files changed, 11 insertions(+) create mode 100644 debian/clean create mode 100644 debian/librem5-host.manpages diff --git a/debian/clean b/debian/clean new file mode 100644 index 0000000..f03cb74 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +debian/librem5-flash-image.1 diff --git a/debian/control b/debian/control index dd92b45..cca9a26 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,7 @@ Maintainer: Guido Günther <agx@sigxcpu.org> Build-Depends: debhelper (>= 11), flake8, + help2man, shellcheck, Standards-Version: 4.1.3 Homepage: https://source.puri.sm/Librem5/librem5-devkit-tools/ diff --git a/debian/librem5-host.manpages b/debian/librem5-host.manpages new file mode 100644 index 0000000..7af7843 --- /dev/null +++ b/debian/librem5-host.manpages @@ -0,0 +1 @@ +librem5-flash-image.1 diff --git a/debian/rules b/debian/rules index 1fd4402..4dcd28d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,7 @@ #!/usr/bin/make -f +include /usr/share/dpkg/default.mk + %: dh $@ @@ -16,3 +18,9 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) else @echo "Checks disabled via DEB_BUILD_OPTIONS" endif + +override_dh_installman: + help2man -N --version-string=$(DEB_VERSION_UPSTREAM) \ + --version-string=0.0.12 scripts/librem5-flash-image \ + > debian/tmp/librem5-flash-image.1 + dh_installman -- GitLab