This repository has been archived by the owner on Sep 8, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Scott Davies
authored and
Scott Davies
committed
Apr 7, 2015
1 parent
8f4c33e
commit 22f077a
Showing
6 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@echo off | ||
|
||
git describe --tags --long > LiveTag.txt | ||
@set /p ACTIVE_TAG=<LiveTag.txt | ||
|
||
git diff HEAD > Diffs.txt | ||
@set /p RAW_DIFFS_FOUND=<Diffs.txt | ||
|
||
setlocal | ||
REM set file= | ||
@for /F "usebackq" %%A in ('"Diffs.txt"') do set DIFF_FILE_SIZE=%%~zA | ||
@if %DIFF_FILE_SIZE% GTR 0 set ACTIVE_TAG=Unstaged Changes | ||
|
||
@echo Tag: %ACTIVE_TAG% | ||
@echo #define RAGENS_VERSION "%ACTIVE_TAG%" > ../../BuildVer.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters