mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 18:14:20 +00:00
VS2010 build: Fixed git versioning script
This commit is contained in:
parent
dfc7f57ffa
commit
6450f46975
@ -113,7 +113,7 @@
|
|||||||
del /f "$(OutDir)*.dll"
|
del /f "$(OutDir)*.dll"
|
||||||
|
|
||||||
type nul > "$(ProjectDir)dist\include\gitversion.h"
|
type nul > "$(ProjectDir)dist\include\gitversion.h"
|
||||||
FOR /F "tokens=*" %%i IN ('call git describe --abbrev=4 --dirty') DO echo #define GIT_VERSION "%%i" > "$(ProjectDir)dist\include\gitversion.h"
|
FOR /F "tokens=*" %%i IN ('call git describe "--abbrev=4" --dirty') DO echo #define GIT_VERSION "%%i" > "$(ProjectDir)dist\include\gitversion.h"
|
||||||
exit 0</Command>
|
exit 0</Command>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@ -148,7 +148,7 @@ exit 0</Command>
|
|||||||
del /f "$(OutDir)*.dll"
|
del /f "$(OutDir)*.dll"
|
||||||
|
|
||||||
type nul > "$(ProjectDir)dist\include\gitversion.h"
|
type nul > "$(ProjectDir)dist\include\gitversion.h"
|
||||||
FOR /F "tokens=*" %%i IN ('call git describe --abbrev=4 --dirty') DO echo #define GIT_VERSION "%%i" > "$(ProjectDir)dist\include\gitversion.h"
|
FOR /F "tokens=*" %%i IN ('call git describe "--abbrev=4" --dirty') DO echo #define GIT_VERSION "%%i" > "$(ProjectDir)dist\include\gitversion.h"
|
||||||
exit 0</Command>
|
exit 0</Command>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@ -186,7 +186,7 @@ exit 0</Command>
|
|||||||
del /f "$(OutDir)*.dll"
|
del /f "$(OutDir)*.dll"
|
||||||
|
|
||||||
type nul > "$(ProjectDir)dist\include\gitversion.h"
|
type nul > "$(ProjectDir)dist\include\gitversion.h"
|
||||||
FOR /F "tokens=*" %%i IN ('call git describe --abbrev=4 --dirty') DO echo #define GIT_VERSION "%%i" > "$(ProjectDir)dist\include\gitversion.h"
|
FOR /F "tokens=*" %%i IN ('call git describe "--abbrev=4" --dirty') DO echo #define GIT_VERSION "%%i" > "$(ProjectDir)dist\include\gitversion.h"
|
||||||
exit 0</Command>
|
exit 0</Command>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
@ -227,7 +227,7 @@ exit 0</Command>
|
|||||||
del /f "$(OutDir)*.dll"
|
del /f "$(OutDir)*.dll"
|
||||||
|
|
||||||
type nul > "$(ProjectDir)dist\include\gitversion.h"
|
type nul > "$(ProjectDir)dist\include\gitversion.h"
|
||||||
FOR /F "tokens=*" %%i IN ('call git describe --abbrev=4 --dirty') DO echo #define GIT_VERSION "%%i" > "$(ProjectDir)dist\include\gitversion.h"
|
FOR /F "tokens=*" %%i IN ('call git describe "--abbrev=4" --dirty') DO echo #define GIT_VERSION "%%i" > "$(ProjectDir)dist\include\gitversion.h"
|
||||||
exit 0</Command>
|
exit 0</Command>
|
||||||
</PreBuildEvent>
|
</PreBuildEvent>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user