summaryrefslogtreecommitdiffstats
path: root/source/script/installmsg.sh
blob: 5a41fe1ca8db93d2e4acc165ea9f5c8156f414b0 (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=`echo $1 | sed 's/\/\//\//g'`
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