2 echo Running SVN version detection script...
4 rem Requires subversion (`svnversion') to be installed
7 if not "%RELEASE%"=="" goto forcerelease
8 if not exist .svn
goto nosvn
9 svnversion
-n .
> os\os2\svnver.tmp
10 if not "%ERRORLEVEL%"=="0" goto nosvn
12 copy os\os2\svnver1.c
+os\os2\svnver.tmp
+os\os2\svnver2.c rev.c
/a
/y
> nul
2> nul
16 echo Forcing release string
"%RELEASE%"...
17 echo const char _openttd_revision
[] = "%RELEASE%"; > rev.c
18 echo const int _revision_number
= 0; >> rev.c
22 echo Error executing `svnversion
' or no SVN data detected
23 echo const char _openttd_revision[] = "norev000"; > rev.c
24 echo const int _revision_number = 0; >> rev.c
29 del svnver.tmp > nul 2> nul