From bc5e2a1289b6c80b9b7a1f3f45ed3897d4474c51 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Fri, 31 Oct 1997 17:33:04 +0000 Subject: Update file for automatically generating a release (This used to be commit 01df21c22d567a0cc6d69a03fd3246dcfd92217d) --- packaging/SGI/makefile.pl | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) (limited to 'packaging/SGI/makefile.pl') 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 () { 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 = ; + print MAKEOUT $a; + ($a = ) =~ s/^# //; + print MAKEOUT $a; + ($a = ) =~ s/^# //; + print MAKEOUT $a; + ($a = ) =~ s/^# //; + print MAKEOUT $a; } else { - print; + print MAKEOUT; } } -- cgit