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

Diff of /eclass/gnuconfig.eclass

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

Revision 1.34 Revision 1.35
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.34 2012/09/15 16:16:53 zmedico Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnuconfig.eclass,v 1.35 2013/05/22 06:03:08 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#
85} 85}
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 /usr/share/gnuconfig/config.sub 92 /usr/share/gnuconfig/config.sub
92 /usr/share/automake-1.9/config.sub 93 /usr/share/automake*/config.sub
93 /usr/share/automake-1.8/config.sub
94 /usr/share/automake-1.7/config.sub
95 /usr/share/automake-1.6/config.sub
96 /usr/share/automake-1.5/config.sub
97 /usr/share/automake-1.4/config.sub
98 /usr/share/libtool/config.sub 94 /usr/share/libtool/config.sub
99 " 95 )
100 grep -s '^timestamp' ${locations} | sort -n -t\' -k2 | tail -n 1 | sed 's,/config.sub:.*$,,' 96 grep -s '^timestamp' "${locations[@]}" | \
97 sort -r -n -t\' -k2 | \
98 sed -n '1{s,/config.sub:.*$,,;p;q}'
101} 99}

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

  ViewVC Help
Powered by ViewVC 1.1.20