Use help2man to generate each manpages for commands
1. Add help2man as Build dependency via debian/control 2. Run it on build time via debian/rules 3. Install it via debian/manpages 4. Add clean target via debian/clean
This commit is contained in:
Родитель
17bd14f9aa
Коммит
345fa879f5
|
@ -0,0 +1 @@
|
|||
debian/*.1
|
|
@ -3,7 +3,7 @@ Maintainer: Zachary Mark <zachary-mark@github.com>
|
|||
Section: misc
|
||||
Priority: optional
|
||||
Standards-Version: 4.5.1
|
||||
Build-Depends: debhelper (>= 10), git, moreutils, jq, rsync (>= 2.6.4)
|
||||
Build-Depends: debhelper (>= 10), git, moreutils, jq, rsync (>= 2.6.4), help2man,
|
||||
Homepage: https://github.com/github/backup-utils
|
||||
Vcs-Git: https://github.com/github/backup-utils.git
|
||||
Vcs-Browser: https://github.com/github/backup-utils
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
debian/*.1
|
|
@ -1,6 +1,18 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
VERSION=$$(cat $(CURDIR)/share/github-backup-utils/version)
|
||||
|
||||
override_dh_auto_build:
|
||||
# generate manpages for ghe-backup, ghe-host-check and ghe-restore
|
||||
help2man $(CURDIR)/bin/ghe-backup -N -o $(CURDIR)/debian/ghe-backup.1 \
|
||||
-n "Take snapshots of all GitHub Enterprise data" \
|
||||
--version-string="ghe-backup $(VERSION)"
|
||||
help2man $(CURDIR)/bin/ghe-host-check -N -o $(CURDIR)/debian/ghe-host-check.1 \
|
||||
-n "Restores a GitHub instance from local backup snapshots" \
|
||||
--version-string="ghe-host-check $(VERSION)"
|
||||
help2man $(CURDIR)/bin/ghe-restore -N -o $(CURDIR)/debian/ghe-restore.1 \
|
||||
-n "Verify connectivity with the GitHub Enterprise Server host" \
|
||||
--version-string="ghe-restore $(VERSION)"
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
|
Загрузка…
Ссылка в новой задаче