1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

r20535: Fix make install to work when root doesn't have

write access into the source tree (like when your
directory is nfs mounted for example....).
Jeremy.
This commit is contained in:
Jeremy Allison 2007-01-04 23:25:04 +00:00 committed by Gerald (Jerry) Carter
parent dcc7bca1ad
commit 7dcb61d1b2

View File

@ -77,11 +77,15 @@ for ln in $LANGS; do
echo $FNAME
if test "$mode" = 'install'; then
if [ "x$BOOKDIR" = "x" ]; then
cat $f | sed 's/@BOOKDIR@.*$//' > $f.tmp
cat $f | sed 's/@BOOKDIR@.*$//' > $FNAME.tmp
else
cat $f | sed 's/@BOOKDIR@//' > $f.tmp
cat $f | sed 's/@BOOKDIR@//' > $FNAME.tmp
fi
f=$f.tmp
if test ! -f "$FNAME.tmp"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
f=$FNAME.tmp
cp "$f" "$FNAME"
rm -f "$f"
if test ! -f "$FNAME"; then