-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

This patch makes this shell script runnable on dash in addition to bash.
If you find it useful please apply.

Thank you

- --
Khem Raj
MontaVista Software Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHOUNuUjbQJxVzeZQRAiV6AKCD+SMdld4L0l/xGP+CpT1zQjaMGwCeONBE
PkIWhOTA+lfHgK9kr8aHjO0=
=6sgW
-----END PGP SIGNATURE-----
Index: testcases/network/generate.sh
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/network/generate.sh,v
retrieving revision 1.3
diff -u -r1.3 generate.sh
--- testcases/network/generate.sh       10 Sep 2007 03:07:07 -0000      1.3
+++ testcases/network/generate.sh       13 Nov 2007 06:20:59 -0000
@@ -53,22 +53,24 @@
 $makeit $data_dir/$jumbo_file $jumbo_size
 
 if [ ! -e $data_dir/bin.sm ] ; then
-       cnt=6
-       while [ $((cnt=cnt-1)) -ge 0 ] ; do
+       cnt=5
+       while [ $cnt -ge 0 ] ; do
                gzip -1 -c datafiles/ascii.sm >> $data_dir/bin.sm
+               cnt=`expr $cnt - 1`
        done
 fi
 
 genfile() {
        local input=$data_dir/$1 output=$data_dir/$2
-       local cnt=20
+       local cnt=19
 
        if [ -e $output ] ; then
                return 0
        fi
 
-       while [ $((cnt=cnt-1)) -ge 0 ] ; do
+       while [ $cnt -ge 0 ] ; do
                cat $input >> $output
+               cnt=`expr $cnt - 1`
        done
 }
 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to