equal
deleted
inserted
replaced
|
1 @for /F "tokens=1* delims== " %%i in (..\configure) do @call :oneline "%%i" "%%j" |
|
2 @if "%mnt%"=="NO" goto :writereleaseversion |
|
3 @goto :writecvsversion |
|
4 |
|
5 :oneline |
|
6 @if "-%~1"=="-doxygen_version_major" call :aset major %2 |
|
7 @if "-%~1"=="-doxygen_version_minor" call :aset minor %2 |
|
8 @if "-%~1"=="-doxygen_version_revision" call :aset revision %2 |
|
9 @if "-%~1"=="-doxygen_version_mmn" call :aset mnt %2 |
|
10 @goto :EOF |
|
11 |
|
12 :aset |
|
13 @set %1=%~2 |
|
14 @goto :EOF |
|
15 |
|
16 :writecvsversion |
|
17 echo %major%.%minor%.%revision%-%mnt%>..\VERSION |
|
18 echo char versionString[]="%major%.%minor%.%revision%-%mnt%";>..\src\version.cpp |
|
19 @goto :EOF |
|
20 |
|
21 :writereleaseversion |
|
22 echo %major%.%minor%.%revision%>..\VERSION |
|
23 echo char versionString[]="%major%.%minor%.%revision%";>..\src\version.cpp |
|
24 @goto :EOF |