summaryrefslogtreecommitdiff
path: root/source3/script
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-03-21 23:42:54 +0000
committerHerb Lewis <herb@samba.org>2002-03-21 23:42:54 +0000
commit87eb1ffd5577c2cd3f0524da3ff7ffce0b407825 (patch)
treed9230ec4f9ba6500289bf8e3633e9b707dbb40f5 /source3/script
parentcd94f6cb634ff5349f1f36883b08e2416c80434a (diff)
downloadsamba-87eb1ffd5577c2cd3f0524da3ff7ffce0b407825.tar.gz
samba-87eb1ffd5577c2cd3f0524da3ff7ffce0b407825.tar.bz2
samba-87eb1ffd5577c2cd3f0524da3ff7ffce0b407825.zip
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 4af0c7a93f626dde33fd737618c2b786f83046c7)
Diffstat (limited to 'source3/script')
-rwxr-xr-xsource3/script/installdat.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/source3/script/installdat.sh b/source3/script/installdat.sh
new file mode 100755
index 0000000000..7ff88ac788
--- /dev/null
+++ b/source3/script/installdat.sh
@@ -0,0 +1,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
+