chiark / gitweb /
git-cache-proxy: introduce servinfo
[chiark-utils.git] / scripts / genspic2gnuplot
index 1cb0fff5e5657d7b1dad97f2bfe68ae5a6987f81..7c213c32711838d7331ab429ade2d69b89da752b 100755 (executable)
@@ -23,7 +23,7 @@
 # This program and its documentation are free software; you can
 # redistribute them and/or modify them under the terms of the GNU
 # General Public License as published by the Free Software Foundation;
-# either version 2, or (at your option) any later version.
+# either version 3, or (at your option) any later version.
 # 
 # This program and its documentation are distributed in the hope that
 # they will be useful, but WITHOUT ANY WARRANTY; without even the
@@ -31,8 +31,8 @@
 # PURPOSE.  See the GNU General Public License for more details.
 # 
 # You should have received a copy of the GNU General Public License along
-# with this program; if not, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# with this program; if not, consult the Free Software Foundation's
+# website at www.fsf.org, or the GNU Project website at www.gnu.org.
 
 die unless @ARGV==1;
 die if $ARGV[0] =~ m/^\-/;
@@ -52,7 +52,6 @@ END
 
 for (;;) {
     ($c,@s)= split /\s+/, <STDIN>;
-print STDERR ">$c< >@s<\n";
     if ($c eq 'S') {
        ($cplot,$logxy,@columns) = @s;
        $cplot .= $counter{$cplot}++;
@@ -60,7 +59,7 @@ print STDERR ">$c< >@s<\n";
        @mmm= map { s/^(\w+)\:// or die; $1; } @columns;
        open S, "> $ofb,$cplot.gnuplot-cmd" or die $!;
        print S <<END
-set data style linespoints
+set data style lines
 set title '$cplot'
 END
         or die $!;
@@ -96,7 +95,6 @@ END
     } elsif ($c eq 'D') {
        die unless @mmm;
        @numbers= @s;
-print STDERR "$#numbers $#columns.\n";
        die unless @numbers == @columns;
        for ($yn=0; $yn<=$#columns; $yn++) {
            $_= $numbers[$yn];
@@ -126,4 +124,4 @@ close A or die $!;
 
 print ": generated ; $sof\n" or die $!;
 
-# $Id: genspic2gnuplot,v 1.2 2004-03-25 00:29:59 ianmdlvl Exp $
+# $Id: genspic2gnuplot,v 1.6 2007-09-21 21:21:15 ianmdlvl Exp $