1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
samba-mirror/source3/script/installdat.sh
Gerald Carter 629120a0a1 cosmetic fix when DESTDIR=/ (default)
(This used to be commit e660b5752aa129c49b0b665845de2fe4c160be00)
2003-10-06 19:24:17 +00:00

24 lines
515 B
Bash
Executable File

#!/bin/sh
#fist version March 2002, Herb Lewis
DATDIR=`echo $1 | sed 's/\/\//\//g'`
SRCDIR=$2/
echo Installing dat files in $DATDIR
for f in $SRCDIR/codepages/*.dat; do
FNAME=$DATDIR/`basename $f`
echo $FNAME
cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
chmod 0644 $FNAME
done
cat << EOF
======================================================================
The dat files have been installed.
======================================================================
EOF
exit 0