Hey guys I have a real big problem from my friend, I have already made some svn files called phx3.bat and wire.bat etc etc that download the svn, but I want it so that I can edit a svn.cfg file and add something like
phx3
wiremod
wiremodelpack1
advdupe
achievments
etc
all under eachover. I want to be able to run a main batch file called svn.bat and it will read the svn.cfg folder and run the phx3.bat and wiremod.bat and stuff like that.
I want it so that it will only run the ones in the cfg file (obviously)
All help is appreciated.
l2real-programming-language.
Batch can only go so far before it exceeds it's usefulness and you end up having to put in all these obscure, unreadable and unmaintainable hacks just to get it to work in batch.
Here's a (rather bad) way you could do it (according to the specs you gave):
[code]
rename svn.cfg svn_lol.bat
svn_lol
rename svn_lol.bat svn.cfg
[/code]
[QUOTE=turby;18711484]l2real-programming-language.
Batch can only go so far before it exceeds it's usefulness and you end up having to put in all these obscure, unreadable and unmaintainable hacks just to get it to work in batch.
Here's a (rather bad) way you could do it (according to the specs you gave):
[code]
rename svn.cfg svn_lol.bat
svn_lol
rename svn_lol.bat svn.cfg
[/code][/QUOTE]
I thought svn was a command-line program and tortoiseSVN gave it a GUI.
You could just write this all up in one large batch file, or just use that gmod utility that already has most of the SVN trunks in there.
Here it is, g-SVN
[url]http://www.facepunch.com/showthread.php?t=853604[/url]
[QUOTE=robmaister12;18711533]I thought svn was a command-line program and tortoiseSVN gave it a GUI.[/QUOTE]
please explain the relevance to my post.
This should work
[code]
@echo off
for /f "tokens=* delims= " %%a in (svn.cfg) do (
start %%a.bat
)
[/code]
Note: I don't usually use Batch and this was a quick job that I hastily tested, there may be a better way but this seems to work.
Thanks T0rento it works :D.
I now have a problem.
My folders go like this "garrysmod/svnupdate/" and all the files are there, but I want it to install the svns for the addons to "garrysmod/addons" my SVN file for phx3 looks like this.
[code]@echo off
echo ---Checking Required Folders
mkdir PHX3
cd svn
echo ---SVN Download Starting
echo ---Downloading PHX3
subversion checkout "https://phoenix-storms.svn.sourceforge.net/svnroot/phoenix-storms/" "../PHX3"
echo ---PHX3 Download Complete[/code]
I want it to goto garrysmod/addons, any help will be much appreciated.
Use ../../addons/<folder> instead of ../<folder>?
Thanks guys
once a directory has been checked out all you need to do is "svn update <path>"
Sorry, you need to Log In to post a reply to this thread.