Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: cvs.eclass
Date: Sun, 22 Aug 2010 20:50:55
Message-Id: 20100822205052.39CBE2004E@flycatcher.gentoo.org
1 vapier 10/08/22 20:50:52
2
3 Modified: cvs.eclass
4 Log:
5 add E{CVS,SCM}_VERSION support #333773 by Michał Górny
6
7 Revision Changes Path
8 1.74 eclass/cvs.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cvs.eclass?rev=1.74&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cvs.eclass?rev=1.74&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/cvs.eclass?r1=1.73&r2=1.74
13
14 Index: cvs.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v
17 retrieving revision 1.73
18 retrieving revision 1.74
19 diff -u -r1.73 -r1.74
20 --- cvs.eclass 21 Aug 2010 19:36:45 -0000 1.73
21 +++ cvs.eclass 22 Aug 2010 20:50:52 -0000 1.74
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2008 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.73 2010/08/21 19:36:45 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/cvs.eclass,v 1.74 2010/08/22 20:50:52 vapier Exp $
27
28 # @ECLASS: cvs.eclass
29 # @MAINTAINER:
30 @@ -548,6 +548,10 @@
31 cp -Rf "$ECVS_TOP_DIR/$ECVS_LOCALNAME" "$WORKDIR/$ECVS_LOCALNAME/.."
32 fi
33
34 + # Not exactly perfect, but should be pretty close #333773
35 + export ECVS_VERSION=$(find "$ECVS_TOP_DIR/$ECVS_LOCALNAME/" -ipath '*/CVS/Entries' -exec cat {} + | sort | sha1sum | awk '{print $1}')
36 + export ESCM_VERSION=${ECVS_VERSION}
37 +
38 # If the directory is empty, remove it; empty directories cannot
39 # exist in cvs. This happens when, for example, kde-source
40 # requests module/doc/subdir which doesn't exist. Still create