Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
524feef6
Commit
524feef6
authored
4 years ago
by
Rob Swindell
Browse files
Options
Downloads
Patches
Plain Diff
Generate git_branch.h and git_hash.h for Windows/MSVC builds.
parent
221a860c
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sbbs3/gitinfo.bat
+4
-0
4 additions, 0 deletions
src/sbbs3/gitinfo.bat
src/sbbs3/sbbs.vcxproj
+6
-0
6 additions, 0 deletions
src/sbbs3/sbbs.vcxproj
with
10 additions
and
0 deletions
src/sbbs3/gitinfo.bat
0 → 100644
+
4
−
0
View file @
524feef6
@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
This diff is collapsed.
Click to expand it.
src/sbbs3/sbbs.vcxproj
+
6
−
0
View file @
524feef6
...
@@ -114,6 +114,9 @@
...
@@ -114,6 +114,9 @@
<SuppressStartupBanner>
true
</SuppressStartupBanner>
<SuppressStartupBanner>
true
</SuppressStartupBanner>
<OutputFile>
.\msvc.win32.dll.debug/sbbs.bsc
</OutputFile>
<OutputFile>
.\msvc.win32.dll.debug/sbbs.bsc
</OutputFile>
</Bscmake>
</Bscmake>
<PreBuildEvent>
<Command>
gitinfo.bat
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
</ItemDefinitionGroup>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<ItemDefinitionGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
>
<Midl>
<Midl>
...
@@ -163,6 +166,9 @@
...
@@ -163,6 +166,9 @@
<SuppressStartupBanner>
true
</SuppressStartupBanner>
<SuppressStartupBanner>
true
</SuppressStartupBanner>
<OutputFile>
.\msvc.win32.dll.release/sbbs.bsc
</OutputFile>
<OutputFile>
.\msvc.win32.dll.release/sbbs.bsc
</OutputFile>
</Bscmake>
</Bscmake>
<PreBuildEvent>
<Command>
gitinfo.bat
</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
</ItemDefinitionGroup>
<ItemGroup>
<ItemGroup>
<ClCompile
Include=
"..\comio\comio.c"
/>
<ClCompile
Include=
"..\comio\comio.c"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment