[Po4a-commits] r2235 - /web/html-build-upload.sh

barbier-guest at users.alioth.debian.org barbier-guest at users.alioth.debian.org
Wed Aug 25 21:00:43 UTC 2010


Author: barbier-guest
Date: Wed Aug 25 21:00:29 2010
New Revision: 2235

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2235
Log:
Update html-build-upload.sh, trunk/po/www has been moved to web/po/www

Modified:
    web/html-build-upload.sh

Modified: web/html-build-upload.sh
URL: http://svn.debian.org/wsvn/po4a/web/html-build-upload.sh?rev=2235&op=diff
==============================================================================
--- web/html-build-upload.sh (original)
+++ web/html-build-upload.sh Wed Aug 25 21:00:29 2010
@@ -6,12 +6,10 @@
 #set -x
 
 # Path to po4a sources
-srcdir=../po4a-cvs
-rm -f po
-ln -s $srcdir/po po
+srcdir=../trunk
 
 percent_lang() {
-	STATS=`msgfmt -o /dev/null --statistics po/pod/$1.po 2>&1`
+	STATS=`msgfmt -o /dev/null --statistics $srcdir/po/pod/$1.po 2>&1`
 	YES=`echo $STATS | sed -n -e 's/^\([[:digit:]]*\).*$/\1/p'`
 	NO=`echo $STATS | sed -n -e 's/^\([[:digit:]]\+\)[^[:digit:]]\+\([[:digit:]]\+\).*$/\2/p'`
 	if [ ! $NO ]; then
@@ -25,10 +23,10 @@
 	echo $((($YES*100)/$TOTAL))
 }
 
+cd $srcdir
 POFILES=`cd po/pod; ls *.po`
 LANGS=${POFILES//.po/}
 
-cd $srcdir
 sed -e 's/^KEEP=.*/KEEP=0/' po4a-build.conf > po4a-build.conf.www
 ./share/po4a-build -f po4a-build.conf.www
 rm -rf po4a-build.conf.www




More information about the Po4a-commits mailing list