Update of /cvsroot/netrek/client/netrekxp
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6854

Added Files:
	buildexe.cmd 
Log Message:
Shortened build file that only builds the netrek executable.

--- NEW FILE: buildexe.cmd ---
SET RSAKey=\netrek_files\rsa\NetrekXP-Mod-RSA-Key-Win32.secret
Set Compiler=BCC
Set InstCWD=\netrek_files
rem Set Compiler=VCC

@echo off
Set MyCWD=%cd%
if /I "%1" == "clean" goto :clean
if /I "%1" == "dist" goto :dist

mkdir %InstCWD%
mkdir %InstCWD%\netrek


if /I "%Compiler%" == "BCC" goto :CompilerBCC
if /I "%Compiler%" == "VCC" goto :CompilerVCC

echo You must set which compiler you have at the top of this batch file.
goto :end

:CompilerVCC
pushd src
%MyCWD%\tools\mkkey -k %RSAKEY%
popd

pushd src\cursors
cscript %MyCWD%\tools\vcmake.vbs curslib.dsw "Win32 Release"
popd

pushd src\winkey
cscript %MyCWD%\tools\vcmake.vbs winkey.dsw "Win32 Release"
popd

cscript %MyCWD%\tools\vcmake.vbs clientr.dsw "Win32 Release"

pushd %InstCWD%\netrek
%MyCWD%\tools\stampver -v%MyCWD%\src\stampver.inf netrek.exe
popd
goto :dist

:CompilerBCC
pushd src
pushd cursors
make
popd
make
%MyCWD%\tools\stampver -v%MyCWD%\src\stampver.inf netrek.exe
popd

goto :dist

:dist

if /I "%Compiler%" == "BCC" copy src\cursors\curslib.dll %InstCWD%\netrek\bitmaps

goto end

:clean
del resources\ships\color\fed\fedship.bmp resources\ships\color\fed\fed_??.bmp
del resources\ships\color\ind\indship.bmp resources\ships\color\ind\ind_??.bmp
del resources\ships\color\kli\kliship.bmp resources\ships\color\kli\kli_??.bmp
del resources\ships\color\ori\oriship.bmp resources\ships\color\ori\ori_??.bmp
del resources\ships\color\rom\romship.bmp resources\ships\color\rom\rom_??.bmp

del resources\ships\color1\fed\fedship1.bmp resources\ships\color1\fed\fed_??.bmp
del resources\ships\color1\ind\indship1.bmp resources\ships\color1\ind\ind_??.bmp
del resources\ships\color1\kli\kliship1.bmp resources\ships\color1\kli\kli_??.bmp
del resources\ships\color1\ori\oriship1.bmp resources\ships\color1\ori\ori_??.bmp
del resources\ships\color1\rom\romship1.bmp resources\ships\color1\rom\rom_??.bmp

del resources\ships\mono\fed\fedshipM.bmp resources\ships\mono\fed\fed_??.bmp
del resources\ships\mono\ind\indshipM.bmp resources\ships\mono\ind\ind_??.bmp
del resources\ships\mono\kli\klishipM.bmp resources\ships\mono\kli\kli_??.bmp
del resources\ships\mono\ori\orishipM.bmp resources\ships\mono\ori\ori_??.bmp
del resources\ships\mono\rom\romshipM.bmp resources\ships\mono\rom\rom_??.bmp

del resources\planlibm\bronco\plan.bmp
del resources\planlibm\rabbit\planR.bmp
del resources\planlibm\moo\planM.bmp
del resources\planlibm\bronco\mplan.bmp
del resources\planlibm\rabbit\mplanR.bmp
del resources\planlibm\moo\mplanM.bmp

del resources\misclib\mono\sbexplM.bmp
del resources\misclib\mono\shexplM.bmp
del resources\misclib\mono\vshield.bmp
del resources\misclib\color\sbexpl.bmp
del resources\misclib\color\shexpl.bmp

if /I "%Compiler%" == "BCC" goto :CleanBCC
if /I "%Compiler%" == "VCC" goto :CleanVCC
echo You must set which compiler you have at the top of this batch file.
goto :end

:CleanVCC
pushd src
del rsa*.c
pushd cursors
del *.ncb
del *.opt
popd
pushd winkey
del *.ncb
del *.opt
popd
popd
del *.ncb
del *.opt

goto :end

:CleanBCC
pushd src
del *.obj *.res netrek.exe netrek.tds netrek.map
pushd cursors
del curslib.ilf curslib.ilc curslib.ild curslib.ils curslib.tds curslib.dll
popd
pushd winkey
del winkey.ilf winkey.ilc winkey.ild winkey.ils winkey.tds winkey.dll
popd
popd

:end