[stgt] [PATCH] improve TGT_VERSION detection

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Wed Dec 24 15:17:18 CET 2008


Use HEAD to embed the reference where you are now.

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 usr/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/Makefile b/usr/Makefile
index b5f6ac3..ce91164 100644
--- a/usr/Makefile
+++ b/usr/Makefile
@@ -1,5 +1,5 @@
 VERSION = 0.9.2
-EXTRAVERSION = $(if $(shell git-show-ref 2>/dev/null),-git-$(shell git-show-ref --heads --abbrev|awk '/refs\/heads\/master/{print $$1}'))
+EXTRAVERSION = $(if $(shell git-show-ref 2>/dev/null),-git-$(shell git-show-ref --head --abbrev|head -1|awk '{print $$1}'))
 
 mandir = /usr/share/man
 
-- 
1.5.6.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list