* sync more files from 3.0
[nivanova/samba-autobuild/.git] / source3 / script / installmsg.sh
1 #!/bin/sh
2 # first version (Sept 2003) written by Shiro Yamada <shiro@miraclelinux.com>
3 # based on the first verion (March 2002) of installdat.sh written by Herb Lewis
4
5 MSGDIR=$1
6 SRCDIR=$2/
7
8 echo Installing msg files in $MSGDIR
9
10 for f in $SRCDIR/po/*.msg; do
11         FNAME=$MSGDIR/`basename $f`
12         echo $FNAME
13         cp $f $FNAME || echo Cannot install $FNAME. Does $USER have privileges?
14         chmod 0644 $FNAME
15 done
16
17 cat << EOF
18 ======================================================================
19 The msg files have been installed. 
20 ======================================================================
21 EOF
22
23 exit 0