1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source3/script/installdat.sh
Herb Lewis 87eb1ffd55 make install should also install the default dat files from codepages
directory so we don't keep getting these stupid error messages about
incorrect size for valid.dat upcase.dat and lowcase.dat
(This used to be commit 4af0c7a93f)
2002-03-21 23:42:54 +00:00

24 lines
488 B
Bash
Executable File

#!/bin/sh
#fist version March 2002, Herb Lewis
DATDIR=$1
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