a44421a79fb36cc2036fe116b97ea3bc9590cd0c
braney
  Fri Dec 2 09:34:39 2011 -0800
removed rcsid (#295)
diff --git src/utils/makeRgbRainbow/makeRgbRainbow.c src/utils/makeRgbRainbow/makeRgbRainbow.c
index bbc1f1f..3bc9c4a 100644
--- src/utils/makeRgbRainbow/makeRgbRainbow.c
+++ src/utils/makeRgbRainbow/makeRgbRainbow.c
@@ -1,67 +1,66 @@
 /* makeRgbRainbow - List RGB values needed for rainbow of given size.. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "sqlNum.h"
 #include "rainbow.h"
 
-static char const rcsid[] = "$Id: newProg.c,v 1.30 2010/03/24 21:18:33 hiram Exp $";
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "makeRgbRainbow - List RGB values needed for rainbow of given size.\n"
   "usage:\n"
   "   makeRgbRainbow size output\n"
   "options:\n"
   "   -light - If set make pastel rainbow\n"
   "   -out=fmt Output format, one of 'tab' or 'C' or 'ra'\n"
   );
 }
 
 static struct optionSpec options[] = {
    {"light", OPTION_BOOLEAN},
    {"out", OPTION_STRING},
    {NULL, 0},
 };
 
 boolean light = FALSE;
 char *out = "tab";
 
 void makeRgbRainbow(char *sizeString, char *outFile)
 /* makeRgbRainbow - List RGB values needed for rainbow of given size.. */
 {
 int i, size = sqlUnsigned(sizeString);
 double pos, step = 1.0/size;
 FILE *f = mustOpen(outFile, "w");
 struct rgbColor (*colAtPos)(double pos) = (light ? lightRainbowAtPos : saturatedRainbowAtPos);
 
 for (i=0, pos=0; i<size; ++i, pos+=step)
     {
     struct rgbColor c = colAtPos(pos);
     if (sameString(out, "C"))
 	fprintf(f, "{%d,%d,%d},\n", c.r, c.g, c.b);
     else if (sameString(out, "tab"))
         fprintf(f, "%d\t%d\t%d\n", c.r, c.g, c.b);
     else if (sameString(out, "ra"))
         fprintf(f, "color %d,%d,%d\n", c.r, c.g, c.b);
     else
         errAbort("Unrecognized out type '%s'", out);
     }
     
 carefulClose(&f);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 if (argc != 3)
     usage();
 light = optionExists("light");
 out = optionVal("out", out);
 makeRgbRainbow(argv[1], argv[2]);
 return 0;
 }