gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog testsuite/libamf.all/zzufsol


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/libamf.all/zzufsol
Date: Fri, 16 May 2008 10:32:46 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/05/16 10:32:46

Modified files:
        .              : ChangeLog 
        testsuite/libamf.all: zzufsol 

Log message:
        * testsuite/libamf.all/zzufsol: print usage on stderr when
          insufficient number of arg is given; accept dir names containing
          spaces as input.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6619&r2=1.6620
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/libamf.all/zzufsol?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6619
retrieving revision 1.6620
diff -u -b -r1.6619 -r1.6620
--- ChangeLog   16 May 2008 10:22:13 -0000      1.6619
+++ ChangeLog   16 May 2008 10:32:43 -0000      1.6620
@@ -1,5 +1,11 @@
 2008-05-16 Sandro Santilli <address@hidden>
 
+       * testsuite/libamf.all/zzufsol: print usage on stderr when
+         insufficient number of arg is given; accept dir names containing
+         spaces as input.
+
+2008-05-16 Sandro Santilli <address@hidden>
+
        * server/sprite_instance.{cpp,h}: remove unloaded TextField references
          from TextField variables container on ::cleanupDisplayList.
          Fixes bug #20076 (leak on curve_ball.swf).

Index: testsuite/libamf.all/zzufsol
===================================================================
RCS file: /sources/gnash/gnash/testsuite/libamf.all/zzufsol,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- testsuite/libamf.all/zzufsol        16 May 2008 09:34:42 -0000      1.1
+++ testsuite/libamf.all/zzufsol        16 May 2008 10:32:46 -0000      1.2
@@ -4,14 +4,21 @@
 # Will create corrupted SOL files from all the .sol files in <indir>
 # using zzuf seeds from <min> to <max> and write them to <outdir>
 
-for r in `ls $1/*.sol`
-do
+if test -z "$4"; then
+       echo "Usage: $0 <indir> <outdir> <min> <max>" >&2
+       exit 1
+fi
+
+ls $1/*.sol | { 
+while read r; do
+       echo "$r"
     count=$3
     while [ $count -le $4 ]
     do
-        f=`md5sum $r | sed 's/  .*$//;'`.sol
+        f=`md5sum "$r" | sed 's/  .*$//;'`.sol
         echo "$count-$f"
-        zzuf -s$count < $r > "$2/$count-$f"
+        zzuf -s$count < "$r" > "$2/$count-$f"
         count=$[$count+1]
     done
 done
+}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]