1997-02-09 22:50:16 +00:00
|
|
|
#! /bin/sh
|
1997-04-03 11:22:02 +01:00
|
|
|
# $Id: buildsunos,v 2.0.2.3 1997/03/30 15:37:34 darrenr Exp $
|
1997-02-09 22:50:16 +00:00
|
|
|
:
|
|
|
|
rev=`uname -r | sed -e 's/^\([^\.]*\)\..*/\1/'`
|
|
|
|
cpu=`uname -m`
|
|
|
|
if [ $rev = 5 ] ; then
|
|
|
|
solrev=`uname -r | sed -e 's/^\([0-9]*\)\.\([0-9]*\)$/\2/'`
|
|
|
|
mkdir -p SunOS5/${cpu}
|
|
|
|
/bin/rm -f SunOS5/${cpu}/Makefile
|
|
|
|
/bin/rm -f SunOS5/${cpu}/Makefile.ipsend
|
|
|
|
ln -s ../Makefile SunOS5/${cpu}/Makefile
|
|
|
|
ln -s ../Makefile.ipsend SunOS5/${cpu}/Makefile.ipsend
|
|
|
|
fi
|
|
|
|
if [ $cpu = i86pc ] ; then
|
1997-04-03 11:22:02 +01:00
|
|
|
make ${1+"$@"} sunos5x86 SOLARIS2="-DSOLARIS2=$solrev" CPU=${cpu}
|
1997-02-09 22:50:16 +00:00
|
|
|
exit $?
|
|
|
|
fi
|
|
|
|
if [ x$solrev = x ] ; then
|
|
|
|
make ${1+"$@"} sunos$rev "ARCH=`uname -m`"
|
|
|
|
exit $?
|
|
|
|
fi
|
1997-04-03 11:22:02 +01:00
|
|
|
make ${1+"$@"} sunos$rev SOLARIS2="-DSOLARIS2=$solrev" CPU=${cpu}
|
1997-02-09 22:50:16 +00:00
|
|
|
exit $?
|