svn, Blitzmax and batch files

BlitzMax Forums/BlitzMax Tutorials/svn, Blitzmax and batch files

Jesse(Posted 2008) [#1]
Please read this whole tutorial before doing anything
if you have never used svn and want to use it then do this:
download and install svn from here:
http://subversion.tigris.org/files/documents/15/39559/svn-1.4.5-setup.exe
then do this:
create a text file or even in the blitzmax editor copy and paste this:
svn checkout http://blitzbasic.com:81/svn/blitzmax/dev/main c:\blitzmax
svn checkout http://blitzbasic.com:81/svn/blitzmax/dev/win32_x86/bin c:\blitzmax\bin
svn checkout http://blitzbasic.com:81/svn/blitzmax/dev/win32_x86/lib c:\blitzmax\lib
rem remove next line if you don't own maxgui
svn checkout http://blitzbasic.com:81/svn/maxgui/dev/maxgui.mod c:\blitzmax\mod\maxgui.mod

save the file and exit it then rename the file to have the extention "bat"
this will become a batch file that will be executed like any executable file.
once it is running it will ask you for your password enter it. Then it will ask you for your name do the same. after a few seconds it will begin downloading the files into the new directory "c:\blitzmax"
if you want it saved on another directory you can replace any where where it says c:\blitzmax and c:\blitzmax\???? to what ever folder you want it to be.
note:

this batch file should only be used for the first time you are loading the files.
also if you don't own maxgui then remove that line from the file.


to update create another text file open it and paste this to it:

svn update c:\blitzmax
svn update c:\blitzmax\bin
rem remove the next line if you don't own maxgui
svn update c:\blitzmax\mod\maxgui.mod

save it and rename this to have the extention "bat" just like the previous one.
if you need to go back and edit it just right click on it and select edit. it will open in the notepad.
note:

if you changed the directory on the checkout svn remember to change this directories to the same directory as in the previous batch file.


now double click on it and watchit work.
note:

run this file everytime you want to check and apply updates.


once you have everything you have to copy the maxide.exe from a working/original installation to the new folder in this case c:\blitzmax
if your original installation of blitzmax is installed in the normal place, you can even add this line to the bottom of the first file the checkout batch file and eliminate the previous instruction:
copy "c:\program files\blitzmax\maxide.exe" c:\blitzmax

now run the maxide.exe that is in the new folder.
now update modules and update documentation.
and you are set.

note:

1. I am assuming MinGW is installed and is working correctly
2.
Delete or put away the first batch file after runing it. you won't need it anymore unless you completely remove the copy of svn blitzmax and decide to reload it again.