summaryrefslogtreecommitdiff
path: root/packaging/SGI/makefile.pl
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>1997-10-31 17:33:04 +0000
committerHerb Lewis <herb@samba.org>1997-10-31 17:33:04 +0000
commitbc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51 (patch)
tree7a1598b1f6fcd73029af1d266e1d08f05fdb880a /packaging/SGI/makefile.pl
parent4400805208722e3679809a0ca53c2285e45212ca (diff)
downloadsamba-bc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51.tar.gz
samba-bc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51.tar.bz2
samba-bc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51.zip
Update file for automatically generating a release
(This used to be commit 01df21c22d567a0cc6d69a03fd3246dcfd92217d)
Diffstat (limited to 'packaging/SGI/makefile.pl')
-rwxr-xr-xpackaging/SGI/makefile.pl42
1 files changed, 28 insertions, 14 deletions
diff --git a/packaging/SGI/makefile.pl b/packaging/SGI/makefile.pl
index 0857ecd909..544fb7e32d 100755
--- a/packaging/SGI/makefile.pl
+++ b/packaging/SGI/makefile.pl
@@ -1,24 +1,38 @@
#!/usr/bin/perl
-while (<>) {
+# This perl script creates the SGI specific Makefile.
+# The BASEDIR is set to /usr/samba, MANDIR is set to /usr/share/man, and
+# the lines are uncommented for the requested OS version. If no version
+# is specified, IRIX 6 is used.
+
+if (!@ARGV) {
+ $OSver = "6";
+}
+else {
+ $OSver = $ARGV[0];
+}
+
+open(MAKEIN,"../../source/Makefile");
+open(MAKEOUT,">Makefile");
+while (<MAKEIN>) {
if (/^BASEDIR =/) {
- print "BASEDIR = /usr/samba\n";
+ print MAKEOUT "BASEDIR = /usr/samba\n";
}
elsif (/^MANDIR =/) {
- print "MANDIR = /usr/share/man\n";
+ print MAKEOUT "MANDIR = /usr/share/man\n";
}
- elsif (/^# FOR SGI IRIX 6/) {
- print;
- $a = <>;
- print $a;
- <>;
- <>;
- <>;
- print "FLAGSM = -DSGI5 -DSHADOW_PWD -DHAVE_TIMEZONE -DFAST_SHARE_MODES\n";
- print "LIBSM =\n";
- print "FLAGS1 = -O -n32 -g3 -OPT:fold_arith_limit=1256\n";
+ 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;
}
else {
- print;
+ print MAKEOUT;
}
}