[Po4a-devel][CVS] po4a html-build-upload.sh,1.5,1.6
Jordi Vilalta
po4a-devel@lists.alioth.debian.org
Mon, 02 Aug 2004 14:38:34 +0000
Update of /cvsroot/po4a/po4a
In directory haydn:/tmp/cvs-serv20542
Modified Files:
html-build-upload.sh
Log Message:
Oops, I broke the all the other percentages when fixed the 100% :(
Index: html-build-upload.sh
===================================================================
RCS file: /cvsroot/po4a/po4a/html-build-upload.sh,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- html-build-upload.sh 2 Aug 2004 14:00:07 -0000 1.5
+++ html-build-upload.sh 2 Aug 2004 14:38:31 -0000 1.6
@@ -16,10 +16,10 @@
NO=`echo $STATS | sed -n -e 's/^\([[:digit:]]\+\)[^[:digit:]]\+\([[:digit:]]\+\).*$/\2/p'`
if [ ! $NO ]; then
NO=0
- O3=`echo $STATS | sed -n -e 's/^\([[:digit:]]\+\)[^[:digit:]]\+\([[:digit:]]\+\)[^[:digit:]]\+\([[:digit:]]\+\).*$/\3/p'`
- if [ $O3 ]; then
- NO=$(($NO + $O3))
- fi
+ fi
+ O3=`echo $STATS | sed -n -e 's/^\([[:digit:]]\+\)[^[:digit:]]\+\([[:digit:]]\+\)[^[:digit:]]\+\([[:digit:]]\+\).*$/\3/p'`
+ if [ $O3 ]; then
+ NO=$(($NO + $O3))
fi
TOTAL=$(($YES+$NO))
echo $((($YES*100)/$TOTAL))