diff options
author | Bo Yang <boyang@novell.com> | 2008-12-02 08:37:27 +0800 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-12-01 11:09:52 +0100 |
commit | 81fc50b4867acf63e624abeda8b3b48c4d300f93 (patch) | |
tree | 5f385bf2674f217191b996acce363cd925a11127 /source3 | |
parent | e021ecea45bbd41fb671d3f0cb8f5c271f14ba7f (diff) | |
download | samba-81fc50b4867acf63e624abeda8b3b48c4d300f93.tar.gz samba-81fc50b4867acf63e624abeda8b3b48c4d300f93.tar.xz samba-81fc50b4867acf63e624abeda8b3b48c4d300f93.zip |
Fix script installmo.sh when no .po file exists
Diffstat (limited to 'source3')
-rw-r--r-- | source3/script/installmo.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/script/installmo.sh b/source3/script/installmo.sh index a1f9c58e275..9c4ab1eefe6 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/" |