Subversion Repositories HelenOS-historic

Compare Revisions

No changes between revisions

Ignore whitespace Rev 465 → Rev 466

/SPARTAN/trunk/build.ia32
1,63 → 1,0
#! /bin/sh
 
function syntax {
echo "Syntax:"
echo " build.<arch> [-compiler <compiler>] [-cpu <cpu>] [-machine <machine>]"
echo
echo "<arch> ... amd64, *ia32, ia64, mips32, ppc32, sparc64"
echo "<compiler> ... native, *cross"
echo "<cpu> ... for ia32: athlon-xp, athlon-mp, pentium3, *pentium4, prescott"
echo "<machine> ... for mips32: *msim, msim4kc, simics, lgxemul, bgxemul, indy"
echo
}
 
ARCH="`basename "$0" | awk -F. '{ if (NF > 1) print \$NF }'`"
if [ -z "$ARCH" ]; then
syntax
exit 1
fi
 
ARGS=""
while [ "$#" -gt 0 ]; do
case "$1" in
-compiler)
if [ -z "$2" ]; then
syntax
exit 1
fi
ARGS="$ARGS COMPILER=$2"
shift
;;
-cpu)
if [ -z "$2" ]; then
syntax
exit 1
fi
ARGS="$ARGS CPU=$2"
shift
;;
-machine)
if [ -z "$2" ]; then
syntax
exit 1
fi
ARGS="$ARGS MACHINE=$2"
shift
;;
*)
syntax
exit 1
;;
esac
shift
done
 
TAG="`svnversion . 2> /dev/null`"
TIMESTAMP="`date "+%Y-%m-%d %H:%M:%S" 2> /dev/null`"
if [ -z "$TAG" ] || [ "$TAG" == "exported" ]; then
TAG="Built on $TIMESTAMP for $ARCH"
else
TAG="Revision $TAG (built on $TIMESTAMP for $ARCH)"
fi
 
make all "ARCH=$ARCH" "TAG=$TAG" $ARGS
link tools/build
Property changes:
Deleted: svn:executable
-*
\ No newline at end of property
Added: svn:special
+*
\ No newline at end of property