Update of /cvsroot/izpack/izpack-src/bin/langpacks/installer
In directory sheep:/tmp/cvs-serv26
Modified Files:
testLangpacks.ksh
Log Message:
Bugfix: too many lines are written at -verbose and more than one langpack.
Index: testLangpacks.ksh
===================================================================
RCS file: /cvsroot/izpack/izpack-src/bin/langpacks/installer/testLangpacks.ksh,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- testLangpacks.ksh 28 Feb 2005 11:38:23 -0000 1.3
+++ testLangpacks.ksh 28 Sep 2005 08:16:02 -0000 1.4
@@ -24,7 +24,7 @@
for lp in $langpacks; do
echo "Result for langpack $lp:"
- result=
+ result=""
count=0
for i in `awk '{print $2}' eng.xml | grep 'id="'`; do
MATCH=`grep "$i" $lp`;
@@ -38,8 +38,13 @@
else
echo " $count IDs missing!"
if [ a$verbose = "atrue" ] ; then
+ i=2
for line in ${result[*]} ; do
echo " $line"
+ if [ $i -gt $count ] ; then
+ break
+ fi
+ i=$i+1
done;
fi
fi
|
|