summaryrefslogtreecommitdiffstats
path: root/source3/script/installdat.sh
blob: 4a5b1de5dc86921ce0a1aad2bda04cce9a0b5893 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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