Skip to content

Commit

Permalink
Makefile: add git revision in the tarballs
Browse files Browse the repository at this point in the history
  • Loading branch information
razvancrainea committed Apr 15, 2014
1 parent 1f68d9a commit 8ad936f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -398,7 +398,8 @@ tar:
--exclude=$(notdir $(CURDIR))/tmp* \
--exclude=$(notdir $(CURDIR))/debian* \
--exclude=.svn* \
--exclude=.git* \
--exclude=.git \
--exclude=.gitignore \
--exclude=*.[do] \
--exclude=*.so \
--exclude=*.il \
Expand Down
6 changes: 6 additions & 0 deletions Makefile.defs
Expand Up @@ -324,6 +324,12 @@ ifneq ($(VERSIONTYPE),)
THISREVISION = unknown
endif

else
# git is the default versioning method
VERSIONTYPE = $(shell [ -f ".gitrevision" ] && echo "git")
ifneq ($(VERSIONTYPE),)
THISREVISION = $(shell cat .gitrevision)
endif
endif


Expand Down

0 comments on commit 8ad936f

Please sign in to comment.