[TeamTalk 158]: [695] TeamTalk: 1) TeamTalk. bat now makes the empty compilations use only directories for you and the logs directory

bfrisch@edam.speech.cs.cmu.edu bfrisch at edam.speech.cs.cmu.edu
Sat Aug 11 22:25:46 EDT 2007


An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/teamtalk-developers/attachments/20070811/2930fc8e/attachment.html
-------------- next part --------------

Property changes on: TeamTalk
___________________________________________________________________
Name: svn:ignore
   - bin
logs

   + bin
logs
temp


Added: TeamTalk/TeamTalk-tools/regTool/reg.exe
===================================================================
(Binary files differ)


Property changes on: TeamTalk/TeamTalk-tools/regTool/reg.exe
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Modified: TeamTalk/TeamTalk.bat
===================================================================
--- TeamTalk/TeamTalk.bat	2007-08-11 07:49:32 UTC (rev 694)
+++ TeamTalk/TeamTalk.bat	2007-08-12 02:25:46 UTC (rev 695)
@@ -1,11 +1,51 @@
-#set %PATH%=`echo %PATH%`;`reg query "HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6" /v $JAVAHOME`
+ at echo off
 
-cd Agents
-cd
-Agents.sln
+:Check to make sure the file is not running with a wrong working directory
+
+IF NOT EXIST TeamTalk.bat goto Error
+IF NOT EXIST Agents\Agents.sln goto Error
+IF NOT EXIST Tools\Tools.sln goto Error
+IF NOT EXIST TeamTalk-Tools\regTool\reg.exe goto Error
+
+:Make directories for logs, temp files, and builds if they do not exist already
+mkdir logs
+mkdir temp
+mkdir bin
+cd bin
+mkdir x86-nt
+
+:Path should be set to include Visual Studio and JDK's binary directory
 cd ..
+TeamTalk-Tools\regTool\reg query "HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.6" /v JAVAHOME > temp\tempPath.txt
 
-cd Tools
-Tools.sln
+:Build the visual studio solutions
 
+Agents\Agents.sln /build Release "Win32|Release"
+Tools\Tools.sln /build "Win32|Release"
+
+
+:Clean Up Changes
+:: ---------------------
+:: Remove the Temporary Path Storage File
+:: Return the path to its original state
+
+del temp\tempPath.txt
+rmdir temp
+
+set PATH = %PATH%
+
+:: Don't display the message that the script was run in the wrong working directory as that was not the case
+goto Pause
+
+:Error message diesplaying the message that the script was run in the wrong working directory
+
+echo. 
+echo This script must be run with the current directory being that of the script.  
+echo (For example, click directly on the script in Windows Explorer instead of 
+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.  
+
+:Pause the script execution so the dos windows does not disappear too soon
 pause
\ No newline at end of file


More information about the TeamTalk-developers mailing list