completely rewrote the AIX UESS backend (UESS is the AIX equivalent of
[Samba/gebeck_regimport.git] / source3 / script / installmsg.sh
blob5a41fe1ca8db93d2e4acc165ea9f5c8156f414b0
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
5 MSGDIR=`echo $1 | sed 's/\/\//\//g'`
6 SRCDIR=$2/
8 echo Installing msg files in $MSGDIR
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
17 cat << EOF
18 ======================================================================
19 The msg files have been installed.
20 ======================================================================
21 EOF
23 exit 0