5ed6f58758a7fb141dc03b270b7c36e2dbac4ca9
kent
  Mon Jun 21 13:53:41 2010 -0700
MOved a function up a bit.
diff --git src/oneShot/testGitRename/justAnotherTest.c src/oneShot/testGitRename/justAnotherTest.c
index 420a5d8..49e6b8c 100644
--- src/oneShot/testGitRename/justAnotherTest.c
+++ src/oneShot/testGitRename/justAnotherTest.c
@@ -1,55 +1,49 @@
 /* testGitRename - Just a little something to test renaming, merging, etc.. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "upperFile.h"
 
 static char const rcsid[] = "$Id: newProg.c,v 1.30 2010/03/24 21:18:33 hiram Exp $";
 
+void upperFile(char *input, char *output)
+/* upperFile - convert file to upper case. */
+{
+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);
+}
+
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "testGitRename - Just a little something to test renaming, merging, etc.\n"
   "usage:\n"
   "   testGitRename input output\n"
   "options:\n"
   "   -xxx=XXX\n"
   );
 }
 
 static struct optionSpec options[] = {
    {NULL, 0},
 };
 
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 if (argc != 3)
     usage();
 upperFile(argv[1], argv[2]);
 return 0;
 }
-/* upperFile - convert file to upper case. */
-
-#include "common.h"
-#include "linefile.h"
-#include "upperFile.h"
-
-void upperFile(char *input, char *output)
-/* upperFile - convert file to upper case. */
-{
-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);
-}
-