1997-02-09 22:50:16 +00:00
|
|
|
#! /bin/sh
|
1998-06-20 18:29:38 +00:00
|
|
|
# $Id: buildsunos,v 2.0.2.4.2.1 1998/05/21 14:46:04 darrenr Exp $
|
1997-02-09 22:50:16 +00:00
|
|
|
:
|
|
|
|
rev=`uname -r | sed -e 's/^\([^\.]*\)\..*/\1/'`
|
|
|
|
cpu=`uname -m`
|
1998-06-20 18:29:38 +00:00
|
|
|
cpudir=${cpu}-`uname -r`
|
1997-02-09 22:50:16 +00:00
|
|
|
if [ $rev = 5 ] ; then
|
1997-05-25 15:45:04 +00:00
|
|
|
solrev=`uname -r | sh -c 'IFS=. read j n x; echo $n'`
|
1998-06-20 18:29:38 +00:00
|
|
|
mkdir -p SunOS5/${cpudir}
|
|
|
|
/bin/rm -f SunOS5/${cpudir}/Makefile
|
|
|
|
/bin/rm -f SunOS5/${cpudir}/Makefile.ipsend
|
|
|
|
ln -s ../Makefile SunOS5/${cpudir}/Makefile
|
|
|
|
ln -s ../Makefile.ipsend SunOS5/${cpudir}/Makefile.ipsend
|
1997-02-09 22:50:16 +00:00
|
|
|
fi
|
|
|
|
if [ $cpu = i86pc ] ; then
|
1998-06-20 18:29:38 +00:00
|
|
|
make ${1+"$@"} sunos5x86 SOLARIS2="-DSOLARIS2=$solrev" CPU=${cpu} CPUDIR=${cpudir}
|
1997-02-09 22:50:16 +00:00
|
|
|
exit $?
|
|
|
|
fi
|
|
|
|
if [ x$solrev = x ] ; then
|
|
|
|
make ${1+"$@"} sunos$rev "ARCH=`uname -m`"
|
|
|
|
exit $?
|
|
|
|
fi
|
1998-06-20 18:29:38 +00:00
|
|
|
make ${1+"$@"} sunos$rev SOLARIS2="-DSOLARIS2=$solrev" CPU=${cpu} CPUDIR=${cpudir}
|
1997-02-09 22:50:16 +00:00
|
|
|
exit $?
|