# list of command aliases # # Feb 2005, M. Spiekermann # definition of the secondo platform if [ "$SECONDO_PLATFORM" == "" ]; then if [ "$OSTYPE" == "msys" ]; then prefix=/c platform="win32" elif [ "$OSTYPE" == "linux" ]; then prefix=$HOME platform="linux" else echo "Error: Unrecognized platform OSTYPE=<$OSTYPE>, please set variable SECONDO_PLATFORM." exit 1 fi export SECONDO_PLATFORM=$platform else # a local shortcut platform=$SECONDO_PLATFORM fi # set default values and export variables used by make export SECONDO_SDK=${SECONDO_SDK:=$prefix/secondo-sdk} export SECONDO_BUILD_DIR=${SECONDO_BUILD_DIR:=$prefix/secondo} # function newAlias # # $1 alias name # $2 command name # # Adds path information before the command name $2 function newAlias() { if [ -z "$SECONDO_BUILD_DIR" ]; then alias ${1}="$2" else alias ${1}="${SECONDO_BUILD_DIR}/${cmdDir}/$2" fi } ########################################################### ## ## Start of configurable part ## ## Please add new shell scripts here. $cmdDir defines ## a path relative to $SECONDO_BUILD_DIR. ## ########################################################### cmdDir=CM-Scripts newAlias backup backup.sh newAlias runtests run-tests.sh newAlias cvstest cvs-make.sh cmdDir=Tools/Generators/TPC-H/secondo newAlias tpcgen tpcgen.sh newAlias tpcrun tpcrun.sh # Envrionment for SECONDO alias setvar="source ${SECONDO_SDK}/bin/setvar.bash" alias catvar="${SECONDO_SDK}/bin/catvar.sh" alias secinit="source $HOME/.secondorc" alias secroot="source ${SECONDO_SDK}/bin/setvar.bash" alias secenv="${SECONDO_SDK}/bin/catvar.sh" # CVS alias jcvs='java -jar ${SECONDO_SDK}/jCVS-5.2.2/jars/jcvsii.jar' alias cvs-info='cvs -nq update | grep "^[A-Z]"' alias cvs-mod='cvs -nq update | grep "^[MAC]"'