Author: mdke
Date: Thu Oct  4 21:33:08 2007
New Revision: 4413

Modified:
   branches/gutsy/debian/rules

Log:
pitti's fix to debian/rules


Modified: branches/gutsy/debian/rules
==============================================================================
--- branches/gutsy/debian/rules (original)
+++ branches/gutsy/debian/rules Thu Oct  4 21:33:08 2007
@@ -33,7 +33,9 @@
 
 # Install the documents; skip documents which are less than 30% translated
 
-               for doc in `cat ubuntu/libs/shipped-docs`; do \
+        set -x; for doc in `cat ubuntu/libs/shipped-docs`; do \
+        numstrings=`LANG=C msgfmt --statistics ubuntu/$$doc/*.pot 2>&1 | sed 
-r 's/^.* ([[:digit:]]+) untranslated.*$$/\1/'`; \
+               for doc in `cat ubuntu/libs/shipped-docs`; do \
                        numstrings=`LANG=C msgfmt --statistics 
ubuntu/$$doc/po/*.pot 2>&1 | sed -r 's/^.* ([[:digit:]]+) 
untranslated.*$$/\1/'`; \
                        for lang in `ls ubuntu/$$doc/`; do \
                                if [ -e ubuntu/$$doc/po/$$lang.po ]; then \
@@ -57,7 +59,7 @@
 # Server material is done slightly differently
 
                for doc in server; do \
-                       numstrings=`LANG=C msgfmt --statistics 
generic/serverguide/po/*.pot 2>&1 | sed -r 's/^.* ([[:digit:]]+) 
untranslated.*$$/\1/'`; \
+            numstrings=`LANG=C msgfmt --statistics generic/serverguide/*.pot 
2>&1 | sed -r 's/^.* ([[:digit:]]+) untranslated.*$$/\1/'`; \
                        for lang in `ls generic/$$doc/`; do \
                                if [ -e generic/serverguide/po/$$lang.po ]; 
then \
                                        translated=`LANG=C msgfmt -o /dev/null 
--statistics generic/serverguide/po/$$lang.po 2>&1| cut -f1 -d\ `; \

-- 
ubuntu-doc-commits mailing list
ubuntu-doc-commits@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-doc-commits

Reply via email to