1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/source3/script/installmsg.sh
Gerald Carter 629120a0a1 cosmetic fix when DESTDIR=/ (default)
(This used to be commit e660b5752a)
2003-10-06 19:24:17 +00:00

24 lines
626 B
Bash

#!/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