r21029: - Remove now unused failure checking code
[Samba.git] / source / script / installdat.sh
blob7ff88ac788e5a574966b8a14131ba748eb61524f
1 #!/bin/sh
2 #fist version March 2002, Herb Lewis
4 DATDIR=$1
5 SRCDIR=$2/
7 echo Installing dat files in $DATDIR
9 for f in $SRCDIR/codepages/*.dat; do
10 FNAME=$DATDIR/`basename $f`
11 echo $FNAME
12 cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
13 chmod 0644 $FNAME
14 done
16 cat << EOF
17 ======================================================================
18 The dat files have been installed.
19 ======================================================================
20 EOF
22 exit 0