summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2009-03-01 21:08:33 +0100
committerVolker Lendecke <vl@samba.org>2009-03-02 14:17:06 +0100
commit212756646efa85880a6b50aa7cb404e402c2ae4a (patch)
tree156d81ecfc24a2ea3a88a520371cfb4cf3c7d93f /source4/script
parent88bd0f2ac6bb7ec41d72a1ea3d7ee90333f4e978 (diff)
downloadsamba-212756646efa85880a6b50aa7cb404e402c2ae4a.tar.gz
samba-212756646efa85880a6b50aa7cb404e402c2ae4a.tar.bz2
samba-212756646efa85880a6b50aa7cb404e402c2ae4a.zip
make man page (un)install more portable
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/installman.sh2
-rwxr-xr-xsource4/script/uninstallman.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/script/installman.sh b/source4/script/installman.sh
index ae99bceacf..a3b6ec0d93 100755
--- a/source4/script/installman.sh
+++ b/source4/script/installman.sh
@@ -6,7 +6,7 @@ MANPAGES=$*
for I in $MANPAGES
do
- SECTION=`echo $I | grep -o '.$'`
+ SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"
DIR="$MANDIR/man$SECTION"
if [ ! -d "$DIR" ]
then
diff --git a/source4/script/uninstallman.sh b/source4/script/uninstallman.sh
index 72b523ed9e..9b087c68bb 100755
--- a/source4/script/uninstallman.sh
+++ b/source4/script/uninstallman.sh
@@ -8,7 +8,7 @@ MANPAGES=$*
for I in $MANPAGES
do
- SECTION=`echo $I | grep -o '.$'`
+ SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"
FNAME=$MANDIR/man$SECTION/$I
if test -f $FNAME; then
echo Deleting $FNAME