[SCM] Samba Shared Repository - branch master updated - 81fc50b4867acf63e624abeda8b3b48c4d300f93

Günther Deschner gd at samba.org
Mon Dec 1 10:11:37 GMT 2008


The branch, master has been updated
       via  81fc50b4867acf63e624abeda8b3b48c4d300f93 (commit)
      from  e021ecea45bbd41fb671d3f0cb8f5c271f14ba7f (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 81fc50b4867acf63e624abeda8b3b48c4d300f93
Author: Bo Yang <boyang at novell.com>
Date:   Tue Dec 2 08:37:27 2008 +0800

    Fix script installmo.sh when no .po file exists

-----------------------------------------------------------------------

Summary of changes:
 source3/script/installmo.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/script/installmo.sh b/source3/script/installmo.sh
index a1f9c58..9c4ab1e 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/"


-- 
Samba Shared Repository


More information about the samba-cvs mailing list