Gentoo Archives: gentoo-commits

From: "George Shapovalov (george)" <george@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: gnat.eclass
Date: Tue, 25 Sep 2007 21:09:33
Message-Id: E1IaHWg-0003Yz-G7@stork.gentoo.org
1 george 07/09/25 21:01:02
2
3 Modified: gnat.eclass
4 Log:
5 removed duplicated helper functions
6
7 Revision Changes Path
8 1.26 eclass/gnat.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?rev=1.26&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?rev=1.26&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gnat.eclass?r1=1.25&r2=1.26
13
14 Index: gnat.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/gnat.eclass,v
17 retrieving revision 1.25
18 retrieving revision 1.26
19 diff -u -r1.25 -r1.26
20 --- gnat.eclass 19 Sep 2007 20:27:25 -0000 1.25
21 +++ gnat.eclass 25 Sep 2007 21:01:02 -0000 1.26
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2004 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnat.eclass,v 1.25 2007/09/19 20:27:25 george Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/gnat.eclass,v 1.26 2007/09/25 21:01:02 george Exp $
27 #
28 # Author: George Shapovalov <george@g.o>
29 # Belongs to: ada herd <ada@g.o>
30 @@ -89,46 +89,6 @@
31 # ------------------------------------
32 # Helpers
33 #
34 -# may be moved to a seperate eclas, if enough accumulated inthis one and in
35 -# gnatbuild.eclass..
36 -
37 -# get_all_profile_components splits gnat profile and returns pace separated list of its components:
38 -# x86_64-pc-linux-gnu-gnat-gcc-4.1 -> x86_64-pc-linux-gnu gcc 4.1
39 -# params:
40 -# $1 - the string to split
41 -get_all_profile_components() {
42 - local GnatSLOT=${1##*-}
43 - local remainder=${1%-*}
44 - local GnatPkg=${remainder##*-}
45 - remainder=${remainder%-gnat-*}
46 - echo "${remainder} ${GnatPkg} ${GnatSLOT}"
47 -}
48 -
49 -# similar to above, returns only SLOT component:
50 -# x86_64-pc-linux-gnu-gnat-gcc-4.1 -> 4.1
51 -# params:
52 -# $1 - the string to extract the slot from
53 -get_gnat_SLOT() {
54 - echo "${1##*-}"
55 -}
56 -
57 -# returns only Pkg component:
58 -# x86_64-pc-linux-gnu-gnat-gcc-4.1 -> gcc
59 -# params:
60 -# $1 - the string to extract the slot from
61 -get_gnat_Pkg() {
62 - local remainder=${1%-*}
63 - echo "${remainder##*-}"
64 -}
65 -
66 -# returns only Arch component:
67 -# x86_64-pc-linux-gnu-gnat-gcc-4.1 -> x86_64-pc-linux-gnu
68 -# params:
69 -# $1 - the string to extract the slot from
70 -get_gnat_Arch() {
71 - echo ${1%-gnat-*}
72 -}
73 -
74
75
76 # The purpose of this one is to remove all parts of the env entry specific to a
77
78
79
80 --
81 gentoo-commits@g.o mailing list