r395: BUG 1232: patch from landonf@opendarwin.org (Landon Fuller) to fix
[Samba/gebeck_regimport.git] / source / script / installdat.sh
blob4a5b1de5dc86921ce0a1aad2bda04cce9a0b5893
1 #!/bin/sh
2 #fist version March 2002, Herb Lewis
4 DATDIR=`echo $1 | sed 's/\/\//\//g'`
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