2011-02-04 05:32:30 -06:00
|
|
|
#!/bin/bash
|
2010-12-13 08:00:40 -06:00
|
|
|
|
2011-02-09 10:40:49 -06:00
|
|
|
scriptPath="$0"
|
2011-02-09 09:47:27 -06:00
|
|
|
|
2011-02-09 10:40:49 -06:00
|
|
|
if [ -h "${scriptPath}" ]; then
|
2011-02-09 09:47:27 -06:00
|
|
|
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
|
2011-02-09 09:47:27 -06:00
|
|
|
|
|
|
|
if [ -e ${coriolisEnvPy} ]; then
|
|
|
|
eval "`${coriolisEnvPy} --v2 --release --shared --python`"
|
2010-12-13 08:00:40 -06:00
|
|
|
else
|
2011-02-09 09:47:27 -06:00
|
|
|
echo "[ERROR] Missing ${coriolisEnvPy} script."
|
2010-12-13 08:00:40 -06:00
|
|
|
fi
|
2011-02-09 11:00:36 -06:00
|
|
|
|
|
|
|
unset scriptPath sysconfDir coriolisEnvPy
|