1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r13816: Volunteering :-)

> for the svn log:
>
> - Solaris' /bin/sh doesn't know "test -e" - let's use "test -f" instead
>
> Some volunteer wanna check this in? :)
>
> Cheers
> Bjoern

Volker
This commit is contained in:
Volker Lendecke 2006-03-03 17:00:56 +00:00 committed by Gerald (Jerry) Carter
parent 123e478ce5
commit 58d5f2031a
4 changed files with 23 additions and 23 deletions

View File

@ -25,7 +25,7 @@ for f in $SRCDIR/codepages/*.dat; do
if test "$mode" = 'install'; then
echo "Installing $f as $FNAME "
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
@ -33,7 +33,7 @@ for f in $SRCDIR/codepages/*.dat; do
elif test "$mode" = 'uninstall'; then
echo "Removing $FNAME "
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi

View File

@ -26,7 +26,7 @@ for f in $SRCDIR/po/*.msg; do
if test "$mode" = 'install'; then
echo "Installing $f as $FNAME "
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
@ -34,7 +34,7 @@ for f in $SRCDIR/po/*.msg; do
elif test "$mode" = 'uninstall'; then
echo "Removing $FNAME "
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi

View File

@ -51,14 +51,14 @@ for ln in $LANGS; do
echo $FNAME
if test "$mode" = 'install'; then
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 "$FNAME"
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi
@ -84,14 +84,14 @@ for ln in $LANGS; do
f=$f.tmp
cp "$f" "$FNAME"
rm -f "$f"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 "$FNAME"
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi
@ -107,14 +107,14 @@ for ln in $LANGS; do
echo $FNAME
if test "$mode" = 'install'; then
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 $FNAME
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi
@ -130,14 +130,14 @@ for ln in $LANGS; do
echo $FNAME
if test "$mode" = 'install'; then
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 $FNAME
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi
@ -171,14 +171,14 @@ if [ -d $SRCDIR../docs/htmldocs/ ]; then
echo $FNAME
if test "$mode" = 'install'; then
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 $FNAME
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi
@ -198,14 +198,14 @@ if [ -d $SRCDIR../docs/htmldocs/ ]; then
echo $FNAME
if test "$mode" = 'install'; then
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 $FNAME
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi
@ -238,14 +238,14 @@ if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; th
echo $FNAME
if test "$mode" = 'install'; then
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 $FNAME
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi
@ -257,14 +257,14 @@ if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; th
echo $FNAME
if test "$mode" = 'install'; then
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 $FNAME
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi
@ -278,14 +278,14 @@ if [ "x$BOOKDIR" != "x" -a -f $SRCDIR../docs/htmldocs/using_samba/toc.html ]; th
echo $FNAME
if test "$mode" = 'install'; then
cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
if test ! -f "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
chmod 0644 $FNAME
elif test "$mode" = 'uninstall'; then
rm -f "$FNAME"
if test -e "$FNAME"; then
if test -f "$FNAME"; then
echo "Cannot remove $FNAME. Does $USER have privileges? "
exit 1
fi

View File

@ -25,7 +25,7 @@ for p in $*; do
fi
# this is a special case, mount needs this in a specific location
if test "$p2" = smbmount -a -e "$DESTDIR/sbin/mount.smbfs"; then
if test "$p2" = smbmount -a -f "$DESTDIR/sbin/mount.smbfs"; then
echo "Removing $DESTDIR/sbin/mount.smbfs "
rm -f "$DESTDIR/sbin/mount.smbfs"
fi