File: WinGitBuildScript.bat

package info (click to toggle)
konclude 0.6.2~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 26,976 kB
  • ctags: 43,332
  • sloc: cpp: 250,898; xml: 54,573; makefile: 29; ansic: 3; sh: 3
file content (15 lines) | stat: -rw-r--r-- 682 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

REM @Set /A "Counter=0" 
REM @git log --oneline > tmpGitLog.txt
REM @FOR /F "delims=" %%A IN (tmpGitLog.txt) DO @SET /A "Counter+=1" 
REM @echo #define KONCLUDE_VERSION_GIT_REVISION_NUMBER %Counter% > revision-git.h

REM @set VersionName=Unknown
REM @git describe --tags --match v*.*.* --abbrev=0 > tmpGitTagName.txt
REM @SET /p VersionName=<tmpGitTagName.txt
REM @echo #define KONCLUDE_VERSION_GIT_TAG_NAME_STRING "%VersionName%" >> revision-git.h

REM @set VersionHash=Unknown
REM @git log --pretty=format:%%h -n 1 > tmpGitHash.txt
REM @set /p VersionHash=<tmpGitHash.txt
REM @echo #define KONCLUDE_VERSION_GIT_REVISION_HASH_STRING "%VersionHash%" >> revision-git.h