summaryrefslogtreecommitdiff
path: root/source3/script/installmsg.sh
blob: 30ad404aa0d8553360c9ae50fc978214ed3e2c18 (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
# first version (Sept 2003) written by Shiro Yamada <shiro@miraclelinux.com>
# based on the first verion (March 2002) of installdat.sh written by Herb Lewis

MSGDIR=$1
SRCDIR=$2/

echo Installing msg files in $MSGDIR

for f in $SRCDIR/po/*.msg; do
	FNAME=$MSGDIR/`basename $f`
	echo $FNAME
	cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
	chmod 0644 $FNAME
done

cat << EOF
======================================================================
The msg files have been installed. 
======================================================================
EOF

exit 0