[debian-edu-commits] debian-edu/ 01/01: Build manpage for ldap-add-user-to-group using help2man.
Holger Levsen
holger at layer-acht.org
Sat Jan 27 23:17:02 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 041eb10200d9ad1099322f9f1a2f461ceaad98f6
Author: Holger Levsen <holger at layer-acht.org>
Date: Sat Jan 27 23:16:54 2018 +0000
Build manpage for ldap-add-user-to-group using help2man.
ldap-tools/ldap-add-user-to-group: modify help output to
match help2man's expectations.
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
debian/changelog | 6 +++---
debian/rules | 4 ++++
ldap-tools/ldap-add-user-to-group | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 409ceda..cad9c3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -25,11 +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 and
+ * Build manpage for debian-edu-fsautoautorresize and ldap-add-user-to-group,
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.
+ * ldap-tools/ldap-add-host-to-netgroup and ./ldap-add-user-to-group: 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 6e68361..5b0a138 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,6 +26,10 @@ override_dh_installman:
--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
+ help2man -N -n "ldap-add-user-to-group - Adds a user as a member in the given group" \
+ --help-option="-h" \
+ --no-discard-stderr debian/debian-edu-config/usr/bin/ldap-add-user-to-group \
+ > debian/debian-edu-config/usr/share/man/man1/ldap-add-user-to-group.1
override_dh_gconf:
dh_gconf --priority=50
diff --git a/ldap-tools/ldap-add-user-to-group b/ldap-tools/ldap-add-user-to-group
index 2d5a5ca..5a3ecb2 100755
--- a/ldap-tools/ldap-add-user-to-group
+++ b/ldap-tools/ldap-add-user-to-group
@@ -8,7 +8,7 @@ UNAME=$1
GROUP=$2
if [ -z "$UNAME" -o -z "$GROUP" ] ; then
- echo -e "usage:\n\t$0 <username> <group>"
+ echo -e "Usage:\t$0 <username> <group>"
echo
echo " Adds a user as a member in the given group."
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