aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/ltp/ltp-20080229/posix_shell_compat.patch
blob: b88d598deb801cc9249ceff568e751d495cb5af3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Index: ltp-full-20080229/testcases/network/generate.sh
===================================================================
--- ltp-full-20080229.orig/testcases/network/generate.sh	2008-03-01 00:34:24.000000000 +0100
+++ ltp-full-20080229/testcases/network/generate.sh	2008-03-01 00:35:13.000000000 +0100
@@ -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=$(($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=$(($cnt-1))
 	done
 }