summaryrefslogtreecommitdiff
path: root/packaging/SGI/makefile.pl
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/SGI/makefile.pl')
-rwxr-xr-xpackaging/SGI/makefile.pl16
1 files changed, 8 insertions, 8 deletions
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 (<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;