FIRE-2555: Fix private channel on windows builds

master
Arrehn 2011-08-17 11:49:35 -04:00
parent 5dade989cd
commit ca285b12f4
1 changed files with 10 additions and 2 deletions

View File

@ -34,7 +34,7 @@ WANTS_FMOD=$FALSE
WANTS_BUILD=$FALSE
PLATFORM="darwin" # darwin, win32, win64, linux32, linux64
BTYPE="Release"
CHANNEL="private-`hostname -s`"
CHANNEL="" # will be overwritten later with platform-specific values unless manually specified.
###
### Helper Functions
@ -253,7 +253,15 @@ if [ ! -d `dirname $LOG` ] ; then
mkdir -p `dirname $LOG`
fi
CHANNEL=`echo $CHANNEL | sed -e "s/[^a-zA-Z0-9\-]*//g"` # strip out difficult characters from channel
if [ -z $CHANNEL ] ; then
if [ $PLATFORM == "win32" ] ; then
CHANNEL="private-`hostname` "
else
CHANNEL="private-`hostname -s`"
fi
else
CHANNEL=`echo $CHANNEL | sed -e "s/[^a-zA-Z0-9\-]*//g"` # strip out difficult characters from channel
fi
if [ \( $WANTS_CLEAN -eq $TRUE \) -a \( $WANTS_BUILD -eq $FALSE \) ] ; then
echo "Cleaning $PLATFORM...."