summaryrefslogtreecommitdiffstats
path: root/source/script/installdat.sh
diff options
context:
space:
mode:
authorLars Müller <lmuelle@samba.org>2006-02-25 17:58:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:23 -0500
commit5119472cdcdc4a0e422d49290c3007527fefd6a2 (patch)
tree2bb5aebbd4e7b3b6a8780169be075731687e3ba7 /source/script/installdat.sh
parentdbdb8bdb9993b0136322530f0b8462bb9477dbf1 (diff)
downloadsamba-5119472cdcdc4a0e422d49290c3007527fefd6a2.tar.gz
samba-5119472cdcdc4a0e422d49290c3007527fefd6a2.tar.xz
samba-5119472cdcdc4a0e422d49290c3007527fefd6a2.zip
r13688: Revert change to set DAT_FILES and SWAT_MSG_FILES in the Makefile.
Instead check for *.dat and *.msg files as done before. Then added files are installed and removed as soon as we have some in the filesystem. It's simpler and less error prone.
Diffstat (limited to 'source/script/installdat.sh')
-rwxr-xr-xsource/script/installdat.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/script/installdat.sh b/source/script/installdat.sh
index 5d7958e2737..298b29452bc 100755
--- a/source/script/installdat.sh
+++ b/source/script/installdat.sh
@@ -20,16 +20,16 @@ case $0 in
*) mode='install' ;;
esac
-for f in $@; do
- FNAME="$DESTDIR/$DATDIR/$f.dat"
+for f in $SRCDIR/codepages/*.dat; do
+ FNAME="$DESTDIR/$DATDIR/`basename $f`"
if test "$mode" = 'install'; then
- echo "Installing $f.dat as $FNAME "
- cp "$SRCDIR/codepages/$f.dat" "$FNAME"
+ echo "Installing $f as $FNAME "
+ cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
- chmod 0644 $FNAME
+ chmod 0644 "$FNAME"
elif test "$mode" = 'uninstall'; then
echo "Removing $FNAME "
rm -f "$FNAME"