r4895 - developers/werner/wlan/freeze

werner at docs.openmoko.org werner at docs.openmoko.org
Thu Jan 22 22:28:06 CET 2009


Author: werner
Date: 2009-01-22 22:28:06 +0100 (Thu, 22 Jan 2009)
New Revision: 4895

Modified:
   developers/werner/wlan/freeze/README
   developers/werner/wlan/freeze/r3ch-plot
Log:
Bah, r3ch-plot obviously can't use a pipe as input. Corrected faulty logic
and README.



Modified: developers/werner/wlan/freeze/README
===================================================================
--- developers/werner/wlan/freeze/README	2009-01-22 21:23:59 UTC (rev 4894)
+++ developers/werner/wlan/freeze/README	2009-01-22 21:28:06 UTC (rev 4895)
@@ -136,11 +136,12 @@
 
 - r3ch.plot plots the output of r2ch.py into a PNG file:
 
-  ./r1.pl log | ./r2ch.py -p | ./r3ch-plot DIST
+  ./r1.pl log | ./r2ch.py -p >tmp
+  ./r3ch-plot DIST tmp
 
   plots the distribution by association type as a function of the hopping
   distance. The other results are accessed with the keys FROM and TO.
 
   By default, the PNG file is displayed with ImageMagick and then discarded.
-  With the option -f, it is written to a file with the name <key>.png or,
-  if the input comes from a file, <name>-<key>.png
+  With the option -f, it is written to a file named <name>-<key>.png where
+  <name> is the name of the input file.

Modified: developers/werner/wlan/freeze/r3ch-plot
===================================================================
--- developers/werner/wlan/freeze/r3ch-plot	2009-01-22 21:23:59 UTC (rev 4894)
+++ developers/werner/wlan/freeze/r3ch-plot	2009-01-22 21:28:06 UTC (rev 4895)
@@ -1,11 +1,7 @@
 #!/bin/sh
 if [ "$1" = -f ]; then
     shift
-    if [ -z "$2" ]; then
-	out="set output \"$1.png\""
-    else
-	out="set output \"`basename $2`-$1.png\""
-    fi
+    out="set output \"`basename $2`-$1.png\""
 else
     out='set output "| display png:-"'
 fi




More information about the commitlog mailing list