Idiot's guide to the SVN version of Blitzmax

BlitzMax Forums/BlitzMax Programming/Idiot's guide to the SVN version of Blitzmax

GfK(Posted 2008) [#1]
Is there one?

I've got as far as downloading the SVN version of Blitzmax because I wanted to play with the threading stuff. Beyond that its just a mish mash of folders with various versions of Blitzmax, IDEs that ask me to Syncmods (even though there isn't a syncmods any more) at startup.

Everybody else seems to magically know how to get it all to work. I've been told that I need to be in the 'dev' folder for the threading stuff but I can't seem to get a peep out of it. The IDE seems to be in one folder, and all the modules are someplace else.

What's the gig, here?


xlsior(Posted 2008) [#2]
I use SlikSVN myself, which is a command-line SVN tool.

I also have TortoiseSVN installed which has windows shell integration, so I can get a visual feedback if there are any issues (e.g. a small red error symbol next to a folder icon if there's a conflict in it somewhere, among others)

With SlikSVN, I can just run a simple batch file that does the syncing, and then rebuild any modules that have changed. I'm checking the BlitzMax SVN repository itself, plus MaxGUI, Brucey's wx modules, and his other modules as well. Here's what's in it:

(Note that this is all on Windows)

echo BlitzMax Main Folder
c:\code\SlikSvn\bin\svn checkout http://blitzbasic.com:81/svn/blitzmax/dev/main c:\code\blitzmax --username <username> --password <password>
echo.
echo BlitzMax Bin
c:\code\SlikSvn\bin\svn checkout http://blitzbasic.com:81/svn/blitzmax/dev/win32_x86/bin c:\code\blitzmax\bin --username <username> --password <password>
echo.
echo BlitzMax Lib
c:\code\SlikSvn\bin\svn checkout http://blitzbasic.com:81/svn/blitzmax/dev/win32_x86/lib c:\code\blitzmax\lib --username <username> --password <password>
echo.
echo MaxGUI
c:\code\SlikSvn\bin\svn checkout http://blitzbasic.com:81/svn/maxgui/dev/maxgui.mod c:\code\blitzmax\mod\maxgui.mod --username <username> --password <password>
echo.
echo Brucey's wxMax Module
c:\code\SlikSvn\bin\svn checkout http://wxmax.googlecode.com/svn/trunk/wx.mod/ c:\code\blitzmax\mod\wx.mod
echo.
echo BaH.mod Modules
c:\code\SlikSvn\bin\svn checkout http://maxmods.googlecode.com/svn/trunk/ c:\code\blitzmax\mod\bah.mod

echo.
echo MakeMods - Compiling New Modules
c:\code\blitzmax\bin\bmk makemods
echo MakeMods - Compiling New Threading Modules
c:\code\blitzmax\bin\bmk makemods -h
echo DocMods - Compiling New Documentation
c:\code\blitzmax\bin\docmods
pause

REM bmk syncdocs


Note that if there -are- any conflicts with certain folders that are different than expected, you may need to delete the local (sub)folder in question after which it will automatically re-download over SVN.

For SVN to work you'll also need to be able to compile modules, so you do need to have a working isntall of MinGW on your computer.

If you haven't already, you probably want to make a full backup of your current blitzmax folder(s) before attempting any of this.


Brucey(Posted 2008) [#3]
echo BaH.mod Modules

You get them all?? That must take a good chunk of a day for the initial checkout! ;-)


GfK(Posted 2008) [#4]
xlsior - thanks. got it going eventually although I had to modify the batch file a bit to suit my own paths, plus I already had subversion installed for some reason, so I used that instead.

The IDE thing confused me a bit, too. Didn't realise I had to dig for the sourcecode and compile it myself. But its all working now.

Mods - any chance this could be stickied? I found the setup of the SVN version to be a complete and utter ballache, and the above would have helped loads.


xlsior(Posted 2008) [#5]
You get them all?? That must take a good chunk of a day for the initial checkout! ;-)


It wasn't that bad, really... I already had downloaded most of them seperately before you started doing the SVN thing.

EDIT: And getting them all is a great way to keep finding new goodies. :-)