2010-08-25 07:15:15 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-08-25 09:14:57 -05:00
|
|
|
if [ -z "$BOOTSTRAP_TOP" ]; then
|
|
|
|
export BOOTSTRAP_TOP=/asim/coriolis2
|
|
|
|
echo "BOOTSTRAP_TOP is not in the environment. Using default:"
|
|
|
|
echo " $BOOTSTRAP_TOP"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$CORIOLIS_TOP" ]; then
|
|
|
|
export CORIOLIS_TOP=/asim/coriolis2
|
|
|
|
echo "CORIOLIS_TOP is not in the environment. Using default:"
|
|
|
|
echo " $CORIOLIS_TOP"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$MANGROVE_TOP" ]; then
|
|
|
|
export MANGROVE_TOP=/asim/mangrove
|
|
|
|
echo "MANGROVE_TOP is not in the environment. Using default:"
|
|
|
|
echo " $MANGROVE_TOP"
|
|
|
|
fi
|
|
|
|
|
|
|
|
rootDir=${HOME}/mangrove
|
|
|
|
|
2010-08-25 07:15:15 -05:00
|
|
|
procs=1
|
|
|
|
if [ $# -gt 0 ]; then procs="$1"; fi
|
|
|
|
|
|
|
|
echo "Using $procs threads."
|
|
|
|
|
2010-08-25 07:18:29 -05:00
|
|
|
${rootDir}/src/bootstrap/buildMangrove.py \
|
2010-08-25 08:03:30 -05:00
|
|
|
--root=${rootDir} \
|
2010-08-25 07:15:15 -05:00
|
|
|
--project=mangrove \
|
|
|
|
--project=caiman \
|
|
|
|
--make="-j${procs} install"
|