Approach to generate branch name for version string now identical to linux/macos_x...
authorhogthrob <hogthrob@github.com>
Mon, 25 Aug 2014 09:05:35 +0000 (11:05 +0200)
committerhogthrob <hogthrob@github.com>
Mon, 25 Aug 2014 09:05:35 +0000 (11:05 +0200)
src/generate-version.bat

index f006a5f..0ebf0b8 100644 (file)
@@ -1,5 +1,6 @@
 @for /f "delims=" %%a in ('git symbolic-ref HEAD') do @set myvar=%%a\r
 @for /f "delims=" %%b in ('git log "--pretty=format:%%h" -1') do @set myvar2=%%b\r
+@REM the 11 is derived from generate-version.sh "cut -b 12" by subtracting 1 \r
 @echo %myvar:~11%-%myvar2%\r
 @copy /b  version.cpp+,, >NUL:\r
 \r