From 49ce0cab3c3ec31e08be9afb7872b8bb03371810 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 13 Apr 1998 23:39:43 +0000 Subject: make it look for only the proper lines to uncomment. (This used to be commit c963ec8cc4bd311023ca4ad00ded4502989b7faa) --- packaging/SGI/makefile.pl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'packaging/SGI/makefile.pl') diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl index bd34299ac7..d621097a22 100755 --- a/packaging/SGI/makefile.pl +++ b/packaging/SGI/makefile.pl @@ -23,14 +23,14 @@ while () { } elsif (/^# FOR SGI IRIX $OSver/) { print MAKEOUT; - $a = ; - print MAKEOUT $a; - ($a = ) =~ s/^# //; - print MAKEOUT $a; - ($a = ) =~ s/^# //; - print MAKEOUT $a; - ($a = ) =~ s/^# //; - print MAKEOUT $a; + while () { + last if ($_ eq "\n"); + if (/^# (FLAGSM|LIBSM|FLAGS1)/) { + s/^# //; + } + print MAKEOUT; + } + print MAKEOUT; } else { print MAKEOUT; -- cgit