diff -r f9fd2a994239 -r 34d87ffcc373 sbsv2/raptor/util/install-linux/package_sbs.sh --- a/sbsv2/raptor/util/install-linux/package_sbs.sh Mon Nov 16 21:19:12 2009 +0000 +++ b/sbsv2/raptor/util/install-linux/package_sbs.sh Wed Nov 18 21:50:36 2009 +0000 @@ -25,8 +25,17 @@ packtype=source fi + echo "Raptor packager for Linux" -export PACKAGER_HOME="$PWD" + + +# Calculate SBS_HOME from where this script is started +temp=$0 +SBS_HOME=$(cd ${temp%/*} && echo $PWD) +export SBS_HOME=${SBS_HOME%/util/install-linux} + + +export PACKAGER_HOME="$SBS_HOME/util/install-linux" echo "SBS_HOME is $SBS_HOME - this is the version that will be packaged."