setup.sh 529 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if [ -n "$BASH_VERSION" ]; then
	if [ "`uname`" = "Darwin" ]; then
		export TAPASCO_HOME=`dirname ${BASH_SOURCE[0]} | xargs cd | pwd`
	else
		export TAPASCO_HOME=`dirname ${BASH_SOURCE[0]} | xargs realpath`
	fi
elif [ -n "$ZSH_VERSION" ]; then
	export TAPASCO_HOME=`dirname ${(%):-%x} | xargs realpath`
else
	echo "WARNING: unknown shell; need source setup.sh from the TaPaSCo root dir!"
	export TAPASCO_HOME=$PWD
fi
echo "TAPASCO_HOME=$TAPASCO_HOME"
export PATH=$TAPASCO_HOME/bin:$PATH
export MANPATH=$MANPATH:$TAPASCO_HOME/man