X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=Makefile.local;fp=Makefile.local;h=af79b5c7348c830055844f5463d50280c4bc0259;hb=94064a6ba2f67005352915dc01c6eb0e19b761f9;hp=4f8f4640e8325b25bfa1a60138e4bfe5b365b3cb;hpb=90f9a5e65e8dab3fad0a60530d3ffc582f1b1a93;p=notmuch diff --git a/Makefile.local b/Makefile.local index 4f8f4640..af79b5c7 100644 --- a/Makefile.local +++ b/Makefile.local @@ -21,7 +21,7 @@ endif VERSION:=$(shell cat ${srcdir}/version) ifeq ($(filter release release-message pre-release update-versions,$(MAKECMDGOALS)),) ifeq ($(IS_GIT),yes) -VERSION:=$(shell git describe --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/) +VERSION:=$(shell git describe --abbrev=7 --match '[0-9.]*'|sed -e s/_/~/ -e s/-/+/ -e s/-/~/) # Write the file 'version.stamp' in case its contents differ from $(VERSION) FILE_VERSION:=$(shell test -f version.stamp && read vs < version.stamp || vs=; echo $$vs) ifneq ($(FILE_VERSION),$(VERSION))