coriolis/bootstrap/coriolis2.sh

24 lines
522 B
Bash
Raw Normal View History

#!/bin/bash
2011-02-09 10:40:49 -06:00
scriptPath="$0"
2011-02-09 10:40:49 -06:00
if [ -h "${scriptPath}" ]; then
while [ -h "${scriptPath}" ]; do scriptPath=`readlink "${scriptPath}"`; done
fi
pushd . > /dev/null
cd `dirname ${scriptPath}` > /dev/null
sysconfDir=`pwd`;
popd > /dev/null
coriolisEnvPy="${sysconfDir}/coriolisEnv.py"
2011-02-09 10:40:49 -06:00
echo $coriolisEnvPy
if [ -e ${coriolisEnvPy} ]; then
eval "`${coriolisEnvPy} --v2 --release --shared --python`"
else
echo "[ERROR] Missing ${coriolisEnvPy} script."
fi
unset scriptPath sysconfDir coriolisEnvPy