summaryrefslogtreecommitdiffstats
path: root/source3/script/installdat.sh
blob: 7ff88ac788e5a574966b8a14131ba748eb61524f (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=$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