Adjust timetable GUI widget sizes and get rid of non-functional 'tiny' versions of...
[openttd-joker.git] / os / os2 / svn_version.cmd
blobcc8836fc0b444e871db3cef91e20844d50debae8
1 @echo off
2 echo Running SVN version detection script...
3 rem
4 rem Requires subversion (`svnversion') to be installed
5 rem
6 cd ..\..
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
13 goto end
15 :forcerelease
16 echo Forcing release string "%RELEASE%"...
17 echo const char _openttd_revision[] = "%RELEASE%"; > rev.c
18 echo const int _revision_number = 0; >> rev.c
19 goto end
21 :nosvn
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
25 goto end
27 :end
28 cd os\os2
29 del svnver.tmp > nul 2> nul
30 rem end