@echo off cls echo ------------------------------------------------------------------------------ echo Simpsons 2 - Radbuild build process echo ------------------------------------------------------------------------------ set PS2_CPATH=\usr/local/sce/ee/gcc/lib/gcc-lib/ee/2.95.3/include;\usr/local/sce/ee/gcc/ee/include;\usr/local/sce/ee/gcc/include/g++-3;\usr/local/sce/ee/include rem ### Use this to chain commands together ### set WHENDONE=END rem ### Use this to signal cleaning ### set DOCLEAN=false set FIREWIRE=FALSE set BUILDDEMO=FALSE if "%2" == "demo" set BUILDDEMO=TRUE if "%3" == "demo" set BUILDDEMO=TRUE if "%1" == "d" goto DEBUG if "%1" == "r" goto RELEASE if "%1" == "t" goto TUNE if "%1" == "f" goto FIREWIRE if "%1" == "pald" goto PAL_DEBUG if "%1" == "palr" goto PAL_RELEASE if "%1" == "palt" goto PAL_TUNE if "%1" == "e3d" goto E3_DEBUG if "%1" == "e3r" goto E3_RELEASE if "%1" == "e3t" goto E3_TUNE if "%1" == "e3" goto E3_RELEASE if "%1" == "all" goto ALL goto ERROR: :DEBUG set CONFIG=DEBUG set BUILDPAL=FALSE set BUILDE3=FALSE set WATCHER=TRUE goto MAKE :RELEASE set CONFIG=RELEASE set BUILDPAL=FALSE set BUILDE3=FALSE set MAPFILE=TRUE set WATCHER=FALSE goto MAKE :TUNE set CONFIG=TUNE set BUILDPAL=FALSE set BUILDE3=FALSE set MAPFILE=TRUE set WATCHER=TRUE goto MAKE :FIREWIRE set CONFIG=TUNE set MAPFILE=TRUE set BUILDPAL=FALSE set BUILDE3=FALSE set WATCHER=FALSE set FIREWIRE=TRUE goto MAKE :PAL_DEBUG set CONFIG=DEBUG set BUILDPAL=TRUE set BUILDE3=FALSE set WATCHER=TRUE goto MAKE :PAL_RELEASE set CONFIG=RELEASE set BUILDPAL=TRUE set BUILDE3=FALSE set MAPFILE=TRUE set WATCHER=FALSE goto MAKE :PAL_TUNE set CONFIG=TUNE set BUILDPAL=TRUE set BUILDE3=FALSE set WATCHER=TRUE goto MAKE :E3_DEBUG set CONFIG=DEBUG set BUILDPAL=FALSE set BUILDE3=TRUE set WATCHER=TRUE goto MAKE :E3_RELEASE set CONFIG=RELEASE set BUILDPAL=FALSE set BUILDE3=TRUE set MAPFILE=TRUE set WATCHER=FALSE goto MAKE :E3_TUNE set CONFIG=TUNE set BUILDPAL=FALSE set BUILDE3=TRUE set WATCHER=TRUE goto MAKE :ALL :ALL_DEBUG set WHENDONE=ALL_RELEASE goto DEBUG :ALL_RELEASE set WHENDONE=ALL_TUNE goto RELEASE :ALL_TUNE set WHENDONE=ALL_FIREWIRE goto TUNE :ALL_FIREWIRE set WHENDONE=END goto FIREWIRE goto ERROR :MAKE if "%2" == "clean" goto CLEAN if "%2" == "allclean" goto ALLCLEAN if "%2" == "libsclean" goto LIBSCLEAN if "%2" == "quick" goto QUICK ..\..\libs\radbuild\GlobalTools\make -r 2>&1 | ..\tools\tee err goto %WHENDONE% :QUICK ..\..\libs\radbuild\GlobalTools\make -r quick 2>&1 | ..\tools\tee err goto %WHENDONE% :CLEAN set DOCLEAN=true ..\..\libs\radbuild\GlobalTools\make -r clean set DOCLEAN=false goto %WHENDONE% :LIBSCLEAN set DOCLEAN=true ..\..\libs\radbuild\GlobalTools\make -r libsclean set DOCLEAN=false goto %WHENDONE% :ALLCLEAN set DOCLEAN=true ..\..\libs\radbuild\GlobalTools\make -r allclean set DOCLEAN=false goto %WHENDONE% :ERROR echo Please specify option all\d\r\t\f [clean] :END echo ------------------------------------------------------------------------------