diff options
author | Gerald Carter <jerry@samba.org> | 2005-11-11 21:11:33 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2005-11-11 21:11:33 +0000 |
commit | d868ed0c06a3ad85eb076ffb2338acfde25b00b9 (patch) | |
tree | 573db55927b70295561c4092dd5c6f926686433f /source/script/installman.sh | |
parent | 40f50e3e98066480f06fb6af6cc2d75853f8403d (diff) | |
download | samba-d868ed0c06a3ad85eb076ffb2338acfde25b00b9.tar.gz samba-d868ed0c06a3ad85eb076ffb2338acfde25b00b9.tar.xz samba-d868ed0c06a3ad85eb076ffb2338acfde25b00b9.zip |
r11685: reverting Lar's change to nistallman from r11224 since it breaks 'make installman' outside the source tree; will fix up after the rc1 release
Diffstat (limited to 'source/script/installman.sh')
-rwxr-xr-x | source/script/installman.sh | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/source/script/installman.sh b/source/script/installman.sh index e9b068a9f6c..6278012635f 100755 --- a/source/script/installman.sh +++ b/source/script/installman.sh @@ -18,10 +18,6 @@ if test ! -d $SRCDIR../docs/manpages; then exit 0 fi -# Get the configured feature set -test -f config.log && \ - eval $( grep "^[[:alnum:]]*=.*" config.log) - for lang in $langs; do if [ "X$lang" = XC ]; then echo Installing default man pages in $MANDIR/ @@ -44,20 +40,13 @@ 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##*/} - - # Check if this man page if required by the configured feature set - case "${MP_BASENAME}" in - smbsh.1) test -z "${SMBWRAPPER}" && continue ;; - *) ;; - esac - - FNAME="$m/${MP_BASENAME}" - + FNAME=$m/`basename $s` + # Test for writability. Involves # blowing away existing files. if (rm -f $FNAME && touch $FNAME); then + rm $FNAME if [ "x$GROFF" = x ] ; then cp $s $m # Copy raw nroff else |