Skip to content

Commit

Permalink
Merge pull request #114 from mabruzzo/getversion-bugfix
Browse files Browse the repository at this point in the history
[Bugfix] Issue #113 - provide sensible version info without git
  • Loading branch information
brittonsmith committed Jun 22, 2022
2 parents cdd6f8b + e31b5f2 commit be1c6d1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/clib/Make.config.targets
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,15 @@ suggest-clean:
show-version:
@echo
@echo "The Grackle Version $(LIB_RELEASE_VERSION)"
@echo "Git Branch `git rev-parse --abbrev-ref HEAD`"
@echo "Git Revision `git rev-parse HEAD`"
@echo
@USEGIT=`command -v git &> /dev/null && git status &> /dev/null && \
echo "1"`; \
if [ "$${USEGIT}" == "1" ]; then \
echo "Git Branch `git rev-parse --abbrev-ref HEAD`"; \
echo "Git Revision `git rev-parse HEAD`"; \
else \
echo "Git Branch N/A"; \
echo "Git Revision N/A"; \
fi

#-----------------------------------------------------------------------

Expand Down

0 comments on commit be1c6d1

Please sign in to comment.