Browse Source

VS2010 build: Fixed git versioning script

nfactor-troky
unknown 11 years ago
parent
commit
6450f46975
  1. 8
      winbuild/sgminer.vcxproj

8
winbuild/sgminer.vcxproj

@ -113,7 +113,7 @@ @@ -113,7 +113,7 @@
del /f "$(OutDir)*.dll"
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>
</PreBuildEvent>
</ItemDefinitionGroup>
@ -148,7 +148,7 @@ exit 0</Command> @@ -148,7 +148,7 @@ exit 0</Command>
del /f "$(OutDir)*.dll"
type nul &gt; "$(ProjectDir)dist\include\gitversion.h"
FOR /F "tokens=*" %%i IN ('call git describe --abbrev=4 --dirty') DO echo #define GIT_VERSION "%%i" &gt; "$(ProjectDir)dist\include\gitversion.h"
FOR /F "tokens=*" %%i IN ('call git describe "--abbrev=4" --dirty') DO echo #define GIT_VERSION "%%i" &gt; "$(ProjectDir)dist\include\gitversion.h"
exit 0</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
@ -186,7 +186,7 @@ exit 0</Command> @@ -186,7 +186,7 @@ exit 0</Command>
del /f "$(OutDir)*.dll"
type nul &gt; "$(ProjectDir)dist\include\gitversion.h"
FOR /F "tokens=*" %%i IN ('call git describe --abbrev=4 --dirty') DO echo #define GIT_VERSION "%%i" &gt; "$(ProjectDir)dist\include\gitversion.h"
FOR /F "tokens=*" %%i IN ('call git describe "--abbrev=4" --dirty') DO echo #define GIT_VERSION "%%i" &gt; "$(ProjectDir)dist\include\gitversion.h"
exit 0</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
@ -227,7 +227,7 @@ exit 0</Command> @@ -227,7 +227,7 @@ exit 0</Command>
del /f "$(OutDir)*.dll"
type nul &gt; "$(ProjectDir)dist\include\gitversion.h"
FOR /F "tokens=*" %%i IN ('call git describe --abbrev=4 --dirty') DO echo #define GIT_VERSION "%%i" &gt; "$(ProjectDir)dist\include\gitversion.h"
FOR /F "tokens=*" %%i IN ('call git describe "--abbrev=4" --dirty') DO echo #define GIT_VERSION "%%i" &gt; "$(ProjectDir)dist\include\gitversion.h"
exit 0</Command>
</PreBuildEvent>
</ItemDefinitionGroup>

Loading…
Cancel
Save