diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl index bd34299ac72..d621097a227 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;