sbsv2/raptor/util/install-linux/package_sbs.sh
branchwip
changeset 9 b211d87c390a
parent 8 34d87ffcc373
child 428 b794862a1518
equal deleted inserted replaced
8:34d87ffcc373 9:b211d87c390a
    23 export packtype=binary
    23 export packtype=binary
    24 if [[ "$packopt" == "s" ]]; then
    24 if [[ "$packopt" == "s" ]]; then
    25 packtype=source
    25 packtype=source
    26 fi
    26 fi
    27 
    27 
    28 
       
    29 echo "Raptor packager for Linux"
    28 echo "Raptor packager for Linux"
    30 
    29 export PACKAGER_HOME="$PWD"
    31 
       
    32 # Calculate SBS_HOME from where this script is started
       
    33 temp=$0
       
    34 SBS_HOME=$(cd ${temp%/*} && echo $PWD)
       
    35 export SBS_HOME=${SBS_HOME%/util/install-linux}
       
    36 
       
    37 
       
    38 export PACKAGER_HOME="$SBS_HOME/util/install-linux"
       
    39 
    30 
    40 echo "SBS_HOME is $SBS_HOME - this is the version that will be packaged."
    31 echo "SBS_HOME is $SBS_HOME - this is the version that will be packaged."
    41 
    32 
    42 export FULLVERSION=`$SBS_HOME/bin/sbs -v` # this also generates all the pyc files
    33 export FULLVERSION=`$SBS_HOME/bin/sbs -v` # this also generates all the pyc files
    43 export VERSION=`echo "$FULLVERSION" | sed 's#.*sbs version *\([^ ]*\).*#\1#'`
    34 export VERSION=`echo "$FULLVERSION" | sed 's#.*sbs version *\([^ ]*\).*#\1#'`