bd66bb1c2162c7b152fa7527c257d629ce105145
kent
  Mon Jun 21 13:31:22 2010 -0700
Split testGitRename into two modules.
diff --git src/oneShot/testGitRename/testGitRename.c src/oneShot/testGitRename/testGitRename.c
index a4c30e3..9e14db4 100644
--- src/oneShot/testGitRename/testGitRename.c
+++ src/oneShot/testGitRename/testGitRename.c
@@ -1,38 +1,48 @@
 /* testGitRename - Just a little something to test renaming, merging, etc.. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.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(
   "testGitRename - Just a little something to test renaming, merging, etc.\n"
   "usage:\n"
-  "   testGitRename XXX\n"
+  "   testGitRename input output\n"
   "options:\n"
   "   -xxx=XXX\n"
   );
 }
 
 static struct optionSpec options[] = {
    {NULL, 0},
 };
 
-void testGitRename(char *XXX)
+void testGitRename(char *input, char *output)
 /* testGitRename - Just a little something to test renaming, merging, etc.. */
 {
+struct lineFile *lf = lineFileOpen(input, TRUE);
+FILE *f = mustOpen(output, "w");
+char *line;
+while (lineFileNext(lf, &line, NULL))
+    {
+    touppers(line);
+    fprintf(f, "%s\n", line);
+    }
+
+carefulClose(&f);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
-if (argc != 2)
+if (argc != 3)
     usage();
-testGitRename(argv[1]);
+testGitRename(argv[1], argv[2]);
 return 0;
 }