summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Marineau <marineam@gentoo.org>2006-07-20 05:34:10 +0000
committerMichael Marineau <marineam@gentoo.org>2006-07-20 05:34:10 +0000
commitb5c261173a63bac45454e0fbb710472a94f35e74 (patch)
treef292f36c4eefa30ca9bb79e2f6fa4d43e951c9c4 /eclass/linux-info.eclass
parent(#81171) Add the parallel distributed shell (jghobrial@uh.edu). (diff)
downloadgentoo-2-b5c261173a63bac45454e0fbb710472a94f35e74.tar.gz
gentoo-2-b5c261173a63bac45454e0fbb710472a94f35e74.tar.bz2
gentoo-2-b5c261173a63bac45454e0fbb710472a94f35e74.zip
Add support for getting the localversion appended by git trees.
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r--eclass/linux-info.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass
index acc6c5d77539..1e677ef1d166 100644
--- a/eclass/linux-info.eclass
+++ b/eclass/linux-info.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.45 2006/05/22 17:35:07 mrness Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.46 2006/07/20 05:34:10 marineam Exp $
#
# Description: This eclass is used as a central eclass for accessing kernel
# related information for sources already installed.
@@ -308,6 +308,10 @@ get_version() {
KV_LOCAL="${KV_LOCAL}$(linux_chkconfig_string LOCALVERSION)"
KV_LOCAL="${KV_LOCAL//\"/}"
+ # For things like git that can append extra stuff:
+ [ -e ${KV_DIR}/scripts/setlocalversion ] &&
+ KV_LOCAL="${KV_LOCAL}$(sh ${KV_DIR}/scripts/setlocalversion ${KV_DIR})"
+
# And we should set KV_FULL to the full expanded version
KV_FULL="${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}${KV_EXTRA}${KV_LOCAL}"