for step in one; do export SHELL=/bin/bash export CONFIG_SHELL=/bin/bash export CONFIGURE_ENV_ARGS=/bin/bash export BUILDDIR=`pwd` export MOZ_CVS_FLAGS="-z3 -q" export CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot export MOZ_CO_PROJECT=browser export MOZILLA_OFFICIAL=1 #export MOZ_DEBUG_SYMBOLS=1 if [[ -n $WINDIR ]] ; then os=win32 export MOZ_TOOLS="/work/mozilla/moztools-static" export VSINSTALLDIR='C:\Program Files\Microsoft Visual Studio 8' export VS80COMNTOOLS='C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\' export VCINSTALLDIR='C:\Program Files\Microsoft Visual Studio 8\VC' export FrameworkDir='C:\WINDOWS\Microsoft.NET\Framework' export FrameworkVersion='v2.0.50727' export FrameworkSDKDir='C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0' export VSINSTALLDIR_cyg="/cygdrive/c/Program Files/Microsoft Visual Studio 8" export VCINSTALLDIR_cyg="/cygdrive/c/Program Files/Microsoft Visual Studio 8/VC" export DevEnvDir="$VSINSTALLDIR\\Common7\\IDE" export DevEnvDir_cyg="$VSINSTALLDIR_cyg/Common7/IDE" export MSVCDir="$VCINSTALLDIR" export MSVCDir_cyg="$VCINSTALLDIR_cyg" if [ -d "$MSVCDir_cyg"/PlatformSDK ] ; then export PlatformSDKDir="$MSVCDir"\\PlatformSDK export PlatformSDKDir_cyg="$MSVCDir_cyg"/PlatformSDK elif [ -d "/cygdrive/c/Program Files/Microsoft Platform SDK" ] ; then export PlatformSDKDir='C:\Program Files\Microsoft Platform SDK' export PlatformSDKDir_cyg='/cygdrive/c/Program Files/Microsoft Platform SDK' else echo Can\'t find Platform SDK\! break 2 fi echo Platform SDK Location: $PlatformSDKDir_cyg if [ ! -f "$MOZ_TOOLS"/lib/libIDL-0.6_s.lib ] ; then echo Can\'t find moztools\! Edit this file and check MOZ_TOOLS path. fi echo moztools Location: $MOZ_TOOLS export PATH="\ $DevEnvDir_cyg:\ $PlatformSDKDir_cyg/bin:\ $MSVCDir_cyg/bin:\ $VSINSTALLDIR_cyg/Common7/Tools:\ $VSINSTALLDIR_cyg/Common7/Tools/bin:\ $MOZ_TOOLS/bin:\ $PATH" export INCLUDE="\ $MSVCDir\ATLMFC\INCLUDE;\ $MSVCDir\INCLUDE;\ $PlatformSDKDir\include;\ $FrameworkSDKDir\include;\ $INCLUDE" export LIB="\ $MSVCDir\ATLMFC\LIB;\ $MSVCDir\LIB;\ $PlatformSDKDir\lib;\ $FrameworkSDKDir\lib;\ $LIB" elif uname | grep -iq darwin ; then os=mac export JS_EDITLINE=1 # required for mac else os=linux fi if [[ $1 == "debug" ]]; then echo setting $BUILDDIR debug unset BUILD_OPT export MOZCONFIG=$BUILDDIR/.mozconfig-debug-$os else echo setting $BUILDDIR release export BUILD_OPT=1 export MOZCONFIG=$BUILDDIR/.mozconfig-$os fi done