summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1998-04-13 23:39:43 +0000
committerHerb Lewis <herb@samba.org>1998-04-13 23:39:43 +0000
commit49ce0cab3c3ec31e08be9afb7872b8bb03371810 (patch)
treec1dc2a6422c3424ed5727f32318e94e46bbe5fba
parent3f5d0ae6b28ad1f9847ccb44da644d6a9b072d20 (diff)
downloadsamba-49ce0cab3c3ec31e08be9afb7872b8bb03371810.tar.gz
samba-49ce0cab3c3ec31e08be9afb7872b8bb03371810.tar.bz2
samba-49ce0cab3c3ec31e08be9afb7872b8bb03371810.zip
make it look for only the proper lines to uncomment.
(This used to be commit c963ec8cc4bd311023ca4ad00ded4502989b7faa)
-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;