From ca285b12f471210f0ef2b100d406c07a511ac2f9 Mon Sep 17 00:00:00 2001 From: Arrehn Date: Wed, 17 Aug 2011 11:49:35 -0400 Subject: [PATCH] FIRE-2555: Fix private channel on windows builds --- scripts/configure_firestorm.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/configure_firestorm.sh b/scripts/configure_firestorm.sh index b7fd719462..9f82564f99 100755 --- a/scripts/configure_firestorm.sh +++ b/scripts/configure_firestorm.sh @@ -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...."