Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <ClusterM@users.noreply.github.com>2017-12-09 18:14:21 +0300
committerGitHub <noreply@github.com>2017-12-09 18:14:21 +0300
commit60a2d4964ce15c75076efe9aaa5aae65ee2f7260 (patch)
treeb7bfc61884b7ace6765d3bb300c8c862564c6c45 /hakchi_gui.csproj
parent14c8ffae3ae0c39d7ee49b53e7416dd99db902f1 (diff)
parent29604df217a8dc9349b7a862c364c4b1a94b2844 (diff)
Merge branch 'stable' into export-games
Diffstat (limited to 'hakchi_gui.csproj')
-rw-r--r--hakchi_gui.csproj14
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. &gt; NUL 2&gt; "$(ProjectDir)commit.txt"
+
+git --version &amp;&amp; (
+ for /f %25%25i in ('git rev-parse --short HEAD') do (
+ git diff-index --quiet HEAD -- &amp;&amp; (
+ echo|set /p="%25%25i" &gt;&gt; "$(ProjectDir)commit.txt"
+ SET ERRORLEVEL=0
+ ) || (
+ echo|set /p="%25%25i (dirty)" &gt;&gt; "$(ProjectDir)commit.txt"
+ )
+ )
+) || SET ERRORLEVEL=0</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>