Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
9d79e2ec
Commit
9d79e2ec
authored
Oct 14, 2015
by
Peter W. Draper
Browse files
Get basename of branch without --short option, this requires a git > 1.7.10
parent
fc72d3b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Makefile.am
View file @
9d79e2ec
...
...
@@ -63,7 +63,7 @@ libswiftsim_mpi_la_SHORTNAME = mpi
version.h
:
version.h.in $(AM_SOURCES) $(include_HEADERS) $(noinst_HEADERS)
if
test
"X
$(GIT_CMD)
"
!=
"X"
;
then
\
GIT_REVISION
=
`
$(GIT_CMD)
describe
--abbrev
=
8
--always
--tags
--dirty
`
;
\
GIT_BRANCH
=
`
$(GIT_CMD)
symbolic-ref
--short
HEAD
`
;
\
GIT_BRANCH
=
`
$(GIT_CMD)
symbolic-ref
HEAD|
sed
's,.*/,,'
`
;
\
sed
-e
"s,@PACKAGE_VERSION
\@
,
$(PACKAGE_VERSION)
,"
\
-e
"s,@GIT_REVISION
\@
,
$
${GIT_REVISION}
,"
\
-e
"s,@GIT_BRANCH
\@
,
$
${GIT_BRANCH}
,"
version.h.in
>
version.h
;
\
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment