[debian-edu-commits] debian-edu/ 01/01: Build manpage for ldap-add-host-to-netgroup using help2man.

Holger Levsen holger at layer-acht.org
Sat Jan 27 23:08:49 UTC 2018


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository debian-edu-config.

commit 360586e5782ea15d546f36fc19e38e8c6dad58ee
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sat Jan 27 22:53:39 2018 +0000

    Build manpage for ldap-add-host-to-netgroup using help2man.
    
    ldap-tools/ldap-add-host-to-netgroup: modify help output to
    match help2man's expectations.
    
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 debian/changelog                     | 5 ++++-
 debian/rules                         | 5 ++++-
 ldap-tools/ldap-add-host-to-netgroup | 2 +-
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 438b61c..409ceda 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,8 +25,11 @@ debian-edu-config (2.10.20) UNRELEASED; urgency=medium
     and adjust debian/debian-edu-config.lintian-overrides.
 
   [ Holger Levsen ]
-  * Build manpage for debian-edu-fsautoautorresize using help2man.
+  * Build manpage for debian-edu-fsautoautorresize and
+    ldap-add-host-to-netgroup using help2man.
   * Add help2man and libfilesys-df-perl to build-depends-indep.
+  * ldap-tools/ldap-add-host-to-netgroup: modify help output to match
+    help2man's expectations.
 
  -- Wolfgang Schweer <wschweer at arcor.de>  Tue, 23 Jan 2018 15:00:57 +0100
 
diff --git a/debian/rules b/debian/rules
index 4161204..6e68361 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,7 +22,10 @@ override_dh_installman:
 		--help-option="-h" \
 		--no-discard-stderr debian/debian-edu-config/usr/sbin/debian-edu-fsautoresize \
 		> debian/debian-edu-config/usr/share/man/man8/debian-edu-fsautoresize.8
-
+	help2man -N -n "ldap-add-host-to-netgroup - Adds a host as a member in the given netgroup" \
+		--help-option="-h" \
+		--no-discard-stderr debian/debian-edu-config/usr/bin/ldap-add-host-to-netgroup \
+		> debian/debian-edu-config/usr/share/man/man1/ldap-add-host-to-netgroup.1
 
 override_dh_gconf:
 	dh_gconf  --priority=50
diff --git a/ldap-tools/ldap-add-host-to-netgroup b/ldap-tools/ldap-add-host-to-netgroup
index 7df3abb..10fdbc9 100755
--- a/ldap-tools/ldap-add-host-to-netgroup
+++ b/ldap-tools/ldap-add-host-to-netgroup
@@ -8,7 +8,7 @@ HOST=$1
 NETGROUP=$2
 
 if [ -z "$HOST" -o -z "$NETGROUP" ] ; then 
-  echo -e "usage:\n\t$0 <hostname> <netgroup>"
+  echo -e "Usage:\t$0 <hostname> <netgroup>"
   echo
   echo "  Adds a host as a member in the given netgroup."
   exit 9

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git



More information about the debian-edu-commits mailing list