...
 
Commits (2)
@git log -1 HEAD --format="#define GIT_HASH \"%%h\"" > git_hash.h
@echo #define GIT_BRANCH ^"| tr -d "\r\n" > git_branch.h
@git rev-parse --abbrev-ref HEAD | tr -d "\n" >> git_branch.h
@echo ^" >> git_branch.h
\ No newline at end of file
......@@ -114,6 +114,9 @@
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\msvc.win32.dll.debug/sbbs.bsc</OutputFile>
</Bscmake>
<PreBuildEvent>
<Command>gitinfo.bat</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
......@@ -163,6 +166,9 @@
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\msvc.win32.dll.release/sbbs.bsc</OutputFile>
</Bscmake>
<PreBuildEvent>
<Command>gitinfo.bat</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\comio\comio.c" />
......