/[gentoo-x86]/eclass/gnuconfig.eclass
Gentoo

Diff of /eclass/gnuconfig.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.35 Revision 1.36
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/gnuconfig.eclass,v 1.35 2013/05/22 06:03:08 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnuconfig.eclass,v 1.36 2014/11/15 06:20:07 vapier Exp $
4# 4#
5# THIS ECLASS IS DEAD: It has been integrated into portage 5# THIS ECLASS IS DEAD: It has been integrated into portage
6# 6#
7# Author: Will Woods <wwoods@gentoo.org> 7# Author: Will Woods <wwoods@gentoo.org>
8# 8#
86 86
87# this searches the standard locations for the newest config.{sub|guess}, and 87# this searches the standard locations for the newest config.{sub|guess}, and
88# returns the directory where they can be found. 88# returns the directory where they can be found.
89gnuconfig_findnewest() { 89gnuconfig_findnewest() {
90 local locations=( 90 local locations=(
91 /usr/share/misc/config.sub 91 "${EPREFIX}"/usr/share/misc/config.sub
92 /usr/share/gnuconfig/config.sub 92 "${EPREFIX}"/usr/share/gnuconfig/config.sub
93 /usr/share/automake*/config.sub 93 "${EPREFIX}"/usr/share/automake*/config.sub
94 /usr/share/libtool/config.sub 94 "${EPREFIX}"/usr/share/libtool/config.sub
95 ) 95 )
96 grep -s '^timestamp' "${locations[@]}" | \ 96 grep -s '^timestamp' "${locations[@]}" | \
97 sort -r -n -t\' -k2 | \ 97 sort -r -n -t\' -k2 | \
98 sed -n '1{s,/config.sub:.*$,,;p;q}' 98 sed -n '1{s,/config.sub:.*$,,;p;q}'
99} 99}

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20