GenMake Patch (oops!)

michael sweet sweetmr at SCT60A.SUNYCT.EDU
Fri Apr 5 05:54:24 AEST 1991


In my hurry to get GenMake out, I forgot to add checking for the '-f'
option when scanning for source files.  This is annoying, but not fatal...
At the end of this message is a context diff that will fix this problem.

 -Mike Sweet

------------------------------------------------------------------------------
"The only        TASC                      (315) 724-1100 (voice)
 truth is that   555 French Road           (315) 724-2031 (fax)
 there are no    New Hartford, NY  13413   Internet: sweetmr at sct60a.sunyct.edu
 truths, only beliefs."                    Delphi:   DODGECOLT
------------------------------------------------------------------------------

*** genmain.c	Thu Apr  4 14:37:50 1991
--- genmain.c.old	Thu Apr  4 14:27:48 1991
***************
*** 184,190 ****
                      f77_compiler = argv[x];
                     }
  #ifdef sgi
!                   else if (strcmp(argv[x], "-feedback") == 0)
                     {            /* '-feedback <filename>' */
                      addlist(&fflags_list, argv[x]);
                      x++;
--- 184,190 ----
                      f77_compiler = argv[x];
                     }
  #ifdef sgi
!                   if (strcmp(argv[x], "-feedback") == 0)
                     {            /* '-feedback <filename>' */
                      addlist(&fflags_list, argv[x]);
                      x++;
***************
*** 331,338 ****
       x++;                       /* next arg... */
       cur_program = argv[x];     /* next program... */
      }
-    else if (strcmp(argv[x], "-f") == 0)
-     x++;                        /* skip makefile name... */
     else if (argv[x][0] != '-')  /* not an option flag */
      {                           /* add the file to the source or header list... */
       addfile(argv[x], &srcs_list, &hdrs_list);
--- 331,336 ----



More information about the Comp.sys.sgi mailing list