summaryrefslogtreecommitdiff
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
commitc0e6e3dad8ecf3269e0c00eaba6012708318cdef (patch)
treec6ee96868344539e30878f6856f125b9b22a9847 /eclass/cvs.eclass
parentClean up old revisions. (diff)
downloadhistorical-c0e6e3dad8ecf3269e0c00eaba6012708318cdef.tar.gz
historical-c0e6e3dad8ecf3269e0c00eaba6012708318cdef.tar.bz2
historical-c0e6e3dad8ecf3269e0c00eaba6012708318cdef.zip
add E{CVS,SCM}_VERSION support #333773 by Michał Górny
Diffstat (limited to 'eclass/cvs.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