s3-install: Don't let MANDIR and SRCDIR be overwritten
[ira/wip.git] / source3 / script / installman.sh
index ab9bfe506decb14730a1a7ce6e42005a9a25c134..2f799968073b4c68df3f36916932e097966c8ab1 100755 (executable)
@@ -20,7 +20,8 @@ fi
 
 # Get the configured feature set
 test -f "${SRCDIR}/config.log" && \
-       eval `grep "^[[:alnum:]]*=.*" "${SRCDIR}/config.log"`
+       eval `grep "^[[:alnum:]]*=.*" "${SRCDIR}/config.log" |
+             grep -v ^MANDIR | grep -v ^SRCDIR`
 
 for lang in $langs; do
     if [ "X$lang" = XC ]; then