forked from lijiext/lammps
use simpler way whether we are inside a git checkout in conventional build
This commit is contained in:
parent
4e632d1b79
commit
9408dd6e92
|
@ -171,7 +171,7 @@ gitversion:
|
|||
@echo 'Gathering git version information'
|
||||
@echo '#ifndef LMP_GIT_VERSION_H' > ${TMPNAME}.lmpgitversion
|
||||
@echo '#define LMP_GIT_VERSION_H' >> ${TMPNAME}.lmpgitversion
|
||||
@if (type git && git describe HEAD ) >> /dev/null 2>> /dev/null ; then \
|
||||
@if (type git && test -e ../.git ) >> /dev/null 2>> /dev/null ; then \
|
||||
git='true'; \
|
||||
commit=$$(git rev-parse HEAD); \
|
||||
branch=$$(git rev-parse --abbrev-ref HEAD); \
|
||||
|
|
Loading…
Reference in New Issue