[oe-commits] Chris Larson : gitver: allow tag adjustment via GIT_TAGADJUST

git version control git at git.openembedded.org
Thu Oct 14 00:24:26 UTC 2010


Module: openembedded.git
Branch: master
Commit: 2d25a816f08fc96daa6d1abff0ece764b3d8f80d
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2d25a816f08fc96daa6d1abff0ece764b3d8f80d

Author: Chris Larson <chris_larson at mentor.com>
Date:   Tue Oct 12 19:06:25 2010 -0700

gitver: allow tag adjustment via GIT_TAGADJUST

Example usage:

    GIT_TAGADJUST = "version[1:]"

Signed-off-by: Chris Larson <chris_larson at mentor.com>

---

 classes/gitver.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/classes/gitver.bbclass b/classes/gitver.bbclass
index b67a017..3edb273 100644
--- a/classes/gitver.bbclass
+++ b/classes/gitver.bbclass
@@ -6,7 +6,8 @@
 # This is most useful in concert with srctree.bbclass.
 
 
-GITVER = "${@get_git_pv('${S}', d)}"
+GIT_TAGADJUST = "version"
+GITVER = "${@get_git_pv('${S}', d, tagadjust=lambda version:${GIT_TAGADJUST})}"
 
 def get_git_pv(path, d, tagadjust=None):
     import os





More information about the Openembedded-commits mailing list