make it look for only the proper lines to uncomment.
authorHerb Lewis <herb@samba.org>
Mon, 13 Apr 1998 23:39:43 +0000 (23:39 +0000)
committerHerb Lewis <herb@samba.org>
Mon, 13 Apr 1998 23:39:43 +0000 (23:39 +0000)
(This used to be commit c963ec8cc4bd311023ca4ad00ded4502989b7faa)

packaging/SGI/makefile.pl

index bd34299ac72dccc288c091be36e9bdb93ed079fc..d621097a2273ee96f5128fedc92ab4e8f63a67ff 100755 (executable)
@@ -23,14 +23,14 @@ while (<MAKEIN>) {
     }
     elsif (/^# FOR SGI IRIX $OSver/) {
        print MAKEOUT;
-       $a = <MAKEIN>;
-       print MAKEOUT $a;
-       ($a = <MAKEIN>) =~ s/^# //;
-       print MAKEOUT $a;
-       ($a = <MAKEIN>) =~ s/^# //;
-       print MAKEOUT $a;
-       ($a = <MAKEIN>) =~ s/^# //;
-       print MAKEOUT $a;
+       while (<MAKEIN>) {
+           last if ($_ eq "\n");
+           if (/^# (FLAGSM|LIBSM|FLAGS1)/) {
+               s/^# //;
+           }
+           print MAKEOUT;
+       }
+       print MAKEOUT;
     }
     else {
        print MAKEOUT;