1
0

nightbuild script: don't echo commands; check before building if the file already exists

git-svn-id: http://mc-server.googlecode.com/svn/trunk@309 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-02-22 09:22:46 +00:00
parent d1deba5b56
commit eac080c94d

View File

@ -1,13 +1,13 @@
rem @echo off
@echo off
:: Nightbbuild2008.cmd
:: This script is run every night to produce a new version of MCServer, backup its PDB files and upload the packages to web.
:: These sub-scripts are used:
:: - WCRev.cmd together with subwcrev templating to obtain the version number as an environment var
:: - UploadVersion.ftp FTP command template for uploading the version to the web (not included in the SVN, because it contains confidential passwords! Use your own)
:: - UploadVersion.ftp FTP command template for uploading the version to the web (not included in the SVN, because it contains confidential passwords! Use your own :)
:: When run without parameters, this script pauses at the end and waits for a keypress.
:: To run in an automated scheduler, add any parameter to disable waiting for a keystroke
::
:: This script expects a few tools on specific paths, you can pass the correct paths for your system as env vars "7z", "vc" and "tsvn"
:: This script expects a few tools on specific paths, you can pass the correct paths for your system as env vars "zip", "vc" and "tsvn"
:: 7-zip executable (by default it should be on PATH):
@ -25,6 +25,8 @@ if %subwcrev%a == a set subwcrev=subwcrev
echo Performing nightbuild of MC-Server
set DONOTPAUSE=y
@ -45,6 +47,16 @@ call Install\WCVersion.cmd
echo WCREV = %WCREV%
:: Test if the version is already present
if exist MCServer_Win_%WCREV%.7z (
echo Latest version already present, bailing out
goto end
)
:: Compile using VC2008 Express. Do a full rebuild.
echo Setting up VS environment...
call "%VS90COMNTOOLS%\vsvars32.bat"
echo Compiling MCServer...