Subject: Re: build.sh defaults file
To: <>
From: David Laight <david@l8s.co.uk>
List: tech-toolchain
Date: 02/06/2003 17:26:13
> I am thinking of adding an /etc/build.conf file to the system that
> would get slurped in by build.sh if it existed -- this file could
> export a bunch of variables to control build.sh behavior. (The change
> is two lines.)
would ~/.build.conf be better?
I always run it from the script below.
David
#!/bin/sh
base=`(cd ..;/bin/pwd)`
machine=i386
while getopts m:o opt
do
case $opt in
m) machine=$OPTARG;;
\?) break;;
esac
done
[ $(( $OPTIND - 1)) = $# ] && set -- "$@" distribution
[ "$machine" != "i386" ] && suffix=_$machine
destdir=$base/dest$suffix
releasedir=$base/release$suffix
objdir=$base/obj$suffix
[ $# = 0 ] && set -- distribution
[ -d $objdir ] || mkdir $objdir || exit 1
[ -d $destdir ] || mkdir $destdir || exit 1
[ -d $releasedir ] || mkdir $releasedir || exit 1
tools=$objdir/tools/tools.`uname -s`-`uname -r`-`uname -m`
[ -d $tools ] && T="-T $tools"
exec ./build.sh $T -u -U -D $destdir -O $objdir -R $releasedir "$@"
--
David Laight: david@l8s.co.uk