summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-08-22 20:50:52 +0000
committerMike Frysinger <vapier@gentoo.org>2010-08-22 20:50:52 +0000
commitfaf0ba433af55a3993cb7fd5a3b4a0228daf99b4 (patch)
tree5c96e99e39bf495433885965996677b8f9f287e4 /eclass
parentClean up old revisions. (diff)
downloadgentoo-2-faf0ba433af55a3993cb7fd5a3b4a0228daf99b4.tar.gz
gentoo-2-faf0ba433af55a3993cb7fd5a3b4a0228daf99b4.tar.bz2
gentoo-2-faf0ba433af55a3993cb7fd5a3b4a0228daf99b4.zip
add E{CVS,SCM}_VERSION support #333773 by Michał Górny
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cvs.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/cvs.eclass b/eclass/cvs.eclass
index a2d895089c69..4c4b2f13fc65 100644
--- a/eclass/cvs.eclass
+++ b/eclass/cvs.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.73 2010/08/21 19:36:45 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.74 2010/08/22 20:50:52 vapier Exp $
# @ECLASS: cvs.eclass
# @MAINTAINER:
@@ -548,6 +548,10 @@ cvs_src_unpack() {
cp -Rf "$ECVS_TOP_DIR/$ECVS_LOCALNAME" "$WORKDIR/$ECVS_LOCALNAME/.."
fi
+ # Not exactly perfect, but should be pretty close #333773
+ export ECVS_VERSION=$(find "$ECVS_TOP_DIR/$ECVS_LOCALNAME/" -ipath '*/CVS/Entries' -exec cat {} + | sort | sha1sum | awk '{print $1}')
+ export ESCM_VERSION=${ECVS_VERSION}
+
# If the directory is empty, remove it; empty directories cannot
# exist in cvs. This happens when, for example, kde-source
# requests module/doc/subdir which doesn't exist. Still create