summaryrefslogtreecommitdiff
path: root/source3/script/installmsg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source3/script/installmsg.sh')
-rw-r--r--source3/script/installmsg.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/script/installmsg.sh b/source3/script/installmsg.sh
index 3bfa3ee772..612568bbce 100644
--- a/source3/script/installmsg.sh
+++ b/source3/script/installmsg.sh
@@ -21,16 +21,16 @@ case $0 in
*) mode='install' ;;
esac
-for f in $@; do
- FNAME="$DESTDIR/$MSGDIR/$f.msg"
+for f in $SRCDIR/po/*.msg; do
+ FNAME="$DESTDIR/$MSGDIR/`basename $f`"
if test "$mode" = 'install'; then
- echo "Installing $f.msg as $FNAME "
- cp "$SRCDIR/po/$f.msg" "$FNAME"
+ echo "Installing $f as $FNAME "
+ cp "$f" "$FNAME"
if test ! -e "$FNAME"; then
echo "Cannot install $FNAME. Does $USER have privileges? "
exit 1
fi
- chmod 0644 $FNAME
+ chmod 0644 "$FNAME"
elif test "$mode" = 'uninstall'; then
echo "Removing $FNAME "
rm -f "$FNAME"