diff options
Diffstat (limited to 'hakchi_gui.csproj')
-rw-r--r-- | hakchi_gui.csproj | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj index a1e10353..84dda3b4 100644 --- a/hakchi_gui.csproj +++ b/hakchi_gui.csproj @@ -2691,8 +2691,17 @@ </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
- <PreBuildEvent>
- </PreBuildEvent>
+ <PreBuildEvent>echo. > NUL 2> "$(ProjectDir)commit.txt"
+
+git --version && (
+ for /f %25%25i in ('git rev-parse --short HEAD') do (
+ git diff-index --quiet HEAD -- && (
+ echo|set /p="%25%25i" >> "$(ProjectDir)commit.txt"
+ ) || (
+ echo|set /p="%25%25i (dirty)" >> "$(ProjectDir)commit.txt"
+ )
+ )
+) || SET ERRORLEVEL=0</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>if exist languages rd /S /Q languages
|