[TeamTalk 355]: [891] trunk/usarsim/System/copy_bins.bat: 1) Improvements to the batch script and bug fixes
bfrisch@edam.speech.cs.cmu.edu
bfrisch at edam.speech.cs.cmu.edu
Wed Dec 26 17:48:42 EST 2007
An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/teamtalk-developers/attachments/20071226/4a1f6b3e/attachment.html
-------------- next part --------------
Modified: trunk/usarsim/System/copy_bins.bat
===================================================================
--- trunk/usarsim/System/copy_bins.bat 2007-12-26 22:17:23 UTC (rev 890)
+++ trunk/usarsim/System/copy_bins.bat 2007-12-26 22:48:40 UTC (rev 891)
@@ -1,28 +1,39 @@
:: Given a UNC Path this script will copy all recently built binary files from the server.
+if "%1"=="" echo Usage copy_bins.bat UNCPathToServer
+if "%1"=="/?" echo Usage copy_bins.bat UNCPathToServer
+if "%1"=="\?" echo Usage copy_bins.bat UNCPathToServer
+
if not exist ut2004.exe goto Error
-if %1=="" echo Usage copy_bins.bat UNCPathToServer
-if %1=="/?" echo Usage copy_bins.bat UNCPathToServer
-if %1=="\?" echo Usage copy_bins.bat UNCPathToServer
+if not exist "%1\TreasureHunt.u" goto WrongServer
+if not exist "%1\TreasureHunt.ucl" goto WrongServer
+if not exist "%1\USARBot.u" goto WrongServer
+if not exist "%1\USARBot.ucl" goto WrongServer
+if not exist "%1\USARBotAPI.u" goto WrongServer
+if not exist "%1\USARBotAPI.ucl" goto WrongServer
+if not exist "%1\USARMisPkg.u" goto WrongServer
+if not exist "%1\USARModels.u" goto WrongServer
echo Copying built code from %1
-copy %1\TreasureHunt.u TreasureHunt.u
-copy %1\TreasureHunt.ucl TreasureHunt.ucl
+copy "%1\USARVictims.u" USARVictims.u
-copy %1\USARBot.u USARBot.u
-copy %1\USARBot.ucl USARBot.ucl
+copy "%1\TreasureHunt.u" /B TreasureHunt.u /B
+copy "%1\TreasureHunt.ucl" /B TreasureHunt.ucl /B
-copy %1\USARBotAPI.u USARBotAPI.u
-copy %1\USARBotAPI.u USARBotAPI.ucl
+copy "%1\USARBot.u" /B USARBot.u /B
+copy "%1\USARBot.ucl" /B USARBot.ucl /B
-copy %1\USARMisPkg.u USARMisPkg.u
+copy "%1\USARBotAPI.u" /B USARBotAPI.u
+copy "%1\USARBotAPI.u" /B USARBotAPI.ucl /B
-copy %1\USARModels.u USARModels.u
+copy "%1\USARMisPkg.u" /B USARMisPkg.u /B
-copy %1\USARVictims.u USARVictims.u
+copy "%1\USARModels.u" /B USARModels.u /B
+copy "%1\USARVictims.u" /B USARVictims.u /B
+
echo Copy complete.
goto pause
@@ -33,7 +44,12 @@
echo entering the full path to the script at the command prompt.)
echo.
echo If this is not the case, please contact bfrisch at gmail.com.
-echo.
+echo.
+goto pause
+:WrongServer Path specified
+echo The given server path does not contain all of the necessary binary files.
+
+
:pause
pause
\ No newline at end of file
More information about the TeamTalk-developers
mailing list