mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +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:
parent
dcc7bca1ad
commit
7dcb61d1b2
@ -77,11 +77,15 @@ for ln in $LANGS; do
|
|||||||
echo $FNAME
|
echo $FNAME
|
||||||
if test "$mode" = 'install'; then
|
if test "$mode" = 'install'; then
|
||||||
if [ "x$BOOKDIR" = "x" ]; then
|
if [ "x$BOOKDIR" = "x" ]; then
|
||||||
cat $f | sed 's/@BOOKDIR@.*$//' > $f.tmp
|
cat $f | sed 's/@BOOKDIR@.*$//' > $FNAME.tmp
|
||||||
else
|
else
|
||||||
cat $f | sed 's/@BOOKDIR@//' > $f.tmp
|
cat $f | sed 's/@BOOKDIR@//' > $FNAME.tmp
|
||||||
fi
|
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"
|
cp "$f" "$FNAME"
|
||||||
rm -f "$f"
|
rm -f "$f"
|
||||||
if test ! -f "$FNAME"; then
|
if test ! -f "$FNAME"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user