diff options
author | Herb Lewis <herb@samba.org> | 1998-04-13 23:39:43 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 1998-04-13 23:39:43 +0000 |
commit | c963ec8cc4bd311023ca4ad00ded4502989b7faa (patch) | |
tree | 732cdbecbc73f120532935d590d4d77697c072ee /packaging/SGI | |
parent | e74428e4287cbc1557cc79d4930371cfaf3256d4 (diff) | |
download | samba-c963ec8cc4bd311023ca4ad00ded4502989b7faa.tar.gz |
make it look for only the proper lines to uncomment.
Diffstat (limited to 'packaging/SGI')
-rwxr-xr-x | packaging/SGI/makefile.pl | 16 |
1 files changed, 8 insertions, 8 deletions
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 (<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; |