diff options
author | Alexey 'Cluster' Avdyukhin <ClusterM@users.noreply.github.com> | 2017-12-09 18:14:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-09 18:14:21 +0300 |
commit | 60a2d4964ce15c75076efe9aaa5aae65ee2f7260 (patch) | |
tree | b7bfc61884b7ace6765d3bb300c8c862564c6c45 /hakchi_gui.csproj | |
parent | 14c8ffae3ae0c39d7ee49b53e7416dd99db902f1 (diff) | |
parent | 29604df217a8dc9349b7a862c364c4b1a94b2844 (diff) |
Merge branch 'stable' into export-games
Diffstat (limited to 'hakchi_gui.csproj')
-rw-r--r-- | hakchi_gui.csproj | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/hakchi_gui.csproj b/hakchi_gui.csproj index 47903884..8d550e8b 100644 --- a/hakchi_gui.csproj +++ b/hakchi_gui.csproj @@ -2793,8 +2793,18 @@ </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"
+ SET ERRORLEVEL=0
+ ) || (
+ echo|set /p="%25%25i (dirty)" >> "$(ProjectDir)commit.txt"
+ )
+ )
+) || SET ERRORLEVEL=0</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>
|