#1041 Detech PLATFORM as msvc using JOB_NAME

v0.27.3
Robin Mills 10 years ago
parent 3ccac0575a
commit 4191c7bf96

@ -14,6 +14,11 @@ result=0
## ##
# which PLATFORM # which PLATFORM
# JOB_NAME is defined when script is called by Jenkins
# PLATFORM must be defined as msvc when called from ssh
if [ ! -z "$JOB_NAME" ];then
PLATFORM=$(echo $JOB_NAME | cut -d= -f 2)
fi
if [ "$PLATFORM" == "" ]; then if [ "$PLATFORM" == "" ]; then
export PLATFORM='' export PLATFORM=''
if [ `uname` == Darwin ]; then if [ `uname` == Darwin ]; then
@ -56,10 +61,6 @@ mkdir -p $dist
echo "---- dist = $dist ------" echo "---- dist = $dist ------"
echo "---- build = $build ------" echo "---- build = $build ------"
echo ++++++++++++++++++++++++++++++++++
export | sort
echo ++++++++++++++++++++++++++++++++++
## ##
# perform the build # perform the build
if [ "$PLATFORM" == "msvc" ]; then if [ "$PLATFORM" == "msvc" ]; then

Loading…
Cancel
Save