m4-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: head - translation project updates


From: Eric Blake
Subject: Re: head - translation project updates
Date: Fri, 11 Aug 2006 15:42:42 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Eric Blake <ebb9 <at> byu.net> writes:

> 
> 2006-08-10  Eric Blake  <ebb9 <at> byu.net>
> 
>       * bootstrap (func_get_translations): New function.
>       (func_update_po): Borrow ideas from tar to correctly pull in
>       translations from newer location.

Needs some cleanups, in case you have CDPATH in your environment without . 
first, and to match a cleanup in tar that avoids deleting everything when just 
updating one pofile.

2006-08-11  Eric Blake  <address@hidden>

        * bootstrap (func_get_translations): Only remove files when doing
        full update.
        (func_update_po): Avoid CDPATH problems.

Index: bootstrap
===================================================================
RCS file: /sources/m4/m4/bootstrap,v
retrieving revision 1.36
diff -u -r1.36 bootstrap
--- bootstrap   10 Aug 2006 15:59:41 -0000      1.36
+++ bootstrap   11 Aug 2006 15:42:01 -0000
@@ -251,7 +251,10 @@
   po_file=$3
 
   func_echo "getting translations into $subdir for $domain..."
-  (cd $subdir && rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'`) &&
+
+  case $po_file in
+    '') (cd $subdir && rm -f dummy `ls | sed -n '/\.gmo$/p; /\.po/p'`);;
+  esac &&
 
   $WGET -nv --cache=off -O "$subdir/$domain.html" "$TP_URL$domain" &&
 
@@ -290,12 +293,12 @@
        *.po)  POFILE=$1    ;;
        *)     POFILE=$1.po ;;
       esac
-      func_get_translations po $package "$POFILE" &&
+      func_get_translations ./po $package "$POFILE" &&
       LANG=`expr $POFILE : '\(.*\)\.po'` &&
       { grep -q $LANG po/LINGUAS ||
        (echo $LANG; cat po/LINGUAS) | sort -o po/LINGUAS; }
     else
-      func_get_translations po $package
+      func_get_translations ./po $package
     fi
 }
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]