summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/script/installmo.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/script/installmo.sh b/source3/script/installmo.sh
index a1f9c58e27..9c4ab1eefe 100644
--- a/source3/script/installmo.sh
+++ b/source3/script/installmo.sh
@@ -24,6 +24,10 @@ for dir in $SRCDIR/locale/*; do
for f in $SRCDIR/locale/$MODULE/*.po; do
BASE=`basename $f`
LANGUAGE=`echo $BASE | sed 's/\.po//g'`
+ if test "$LANGUAGE" = '*'; then
+ echo "No .po file exists!"
+ exit 0
+ fi
FNAME="$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/$MODULE.mo"
if test ! -d "$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/"; then
mkdir -p "$DESTDIR/$LOCALEDIR/$LANGUAGE/LC_MESSAGES/"