The branch, v3-3-test has been updated
       via  f7825e07c9674f994d7c0d571448c2927721fdaf (commit)
      from  87191fdbf929767dad7715acbff8a414b8091544 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit f7825e07c9674f994d7c0d571448c2927721fdaf
Author: Bo Yang <[EMAIL PROTECTED]>
Date:   Tue Dec 2 08:35:26 2008 +0800

    Fix script installmo.sh when no .po file exists

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

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


Changeset truncated at 500 lines:

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

Reply via email to