r16130: fix a shell portability issue for Solaris sh in installman.sh
authorGerald Carter <jerry@samba.org>
Fri, 9 Jun 2006 21:57:42 +0000 (21:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:17:22 +0000 (11:17 -0500)
(This used to be commit 9be3e07884e7f8121bc64766e7d036495cd94a15)

source3/script/installman.sh

index 3bbca1a8aa5641f03f74f720066c75d8ad8b4423..869ce6ee38edb293d55b862ad0cfae2208f9f8fc 100755 (executable)
@@ -20,7 +20,7 @@ fi
 
 # Get the configured feature set
 test -f "${SRCDIR}/config.log" && \
-       eval $( grep "^[[:alnum:]]*=.*" "${SRCDIR}/config.log")
+       eval `grep "^[[:alnum:]]*=.*" "${SRCDIR}/config.log"`
 
 for lang in $langs; do
     if [ "X$lang" = XC ]; then
@@ -44,7 +44,7 @@ for lang in $langs; do
     for sect in 1 5 7 8 ; do
        for m in $langdir/man$sect ; do
            for s in $SRCDIR../docs/manpages/$lang/*$sect; do
-           MP_BASENAME=${s##*/}
+           MP_BASENAME=`basename $s`
 
            # Check if this man page if required by the configured feature set
            case "${MP_BASENAME}" in