Mistři v programování na #hovnokod

Visual Basic #555

set root=D:\work\
set batch=D:\batch
set default=mfs
set svncmd=svn
set revert=revert
set config=WebUI\Web.config
set phpfile=wc.php
set start=start /b /wait
set rerun=rerun.cmd
set build=build.cmd

if  "%2"=="" (set where=%batch%\svn.txt) else (set where="%2")
if "%1"=="commit" (set o=-F %batch%\svnlog.log)
if "%1"=="commit" (set m=-m "%3")

prompt $G
color 1f
cls

for /f %%s in (%where%) do (
	title %1 %%s
	echo ===============================================================================
	echo %1 %%s
	if "%%s"=="%default%" (
		%svncmd% %revert% %root%%%s\%config% >> nul
		%svncmd% %1 %o% %m% %root%%%s
		%phpfile% %root%%%s\%config%
		pause
		title build %%s
		%build% %%s /b
		title rerun %%s
		%rerun% %%s /b
	) else (
		%svncmd% %1 %o% %m% %root%%%s
		pause
	)
	title %1 %%s - done!
)
exit

HovnoKod,