diff options
author | Michael Marineau <marineam@gentoo.org> | 2006-07-20 05:34:10 +0000 |
---|---|---|
committer | Michael Marineau <marineam@gentoo.org> | 2006-07-20 05:34:10 +0000 |
commit | 7cdeb428db19489a6e70b81893d25815830a63d3 (patch) | |
tree | 8641073dc7c0306cf638f2f9cfd8e3de1c01539f /eclass/linux-info.eclass | |
parent | (#81171) Add the parallel distributed shell (jghobrial@uh.edu). (diff) | |
download | historical-7cdeb428db19489a6e70b81893d25815830a63d3.tar.gz historical-7cdeb428db19489a6e70b81893d25815830a63d3.tar.bz2 historical-7cdeb428db19489a6e70b81893d25815830a63d3.zip |
Add support for getting the localversion appended by git trees.
Diffstat (limited to 'eclass/linux-info.eclass')
-rw-r--r-- | eclass/linux-info.eclass | 6 |
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}" |