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

Diff of /eclass/gnuconfig.eclass

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

Revision 1.25 Revision 1.26
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.25 2004/08/07 04:26:23 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnuconfig.eclass,v 1.26 2004/08/24 00:10:08 mr_bones_ Exp $
4# 4#
5# Author: Will Woods <wwoods@gentoo.org> 5# Author: Will Woods <wwoods@gentoo.org>
6# 6#
7# This eclass is used to automatically update files that typically come with 7# This eclass is used to automatically update files that typically come with
8# automake to the newest version available on the system. The most common use 8# automake to the newest version available on the system. The most common use
13# usage: gnuconfig_update [file1 file2 ...] 13# usage: gnuconfig_update [file1 file2 ...]
14# if called without arguments, config.guess and config.sub will be updated. 14# if called without arguments, config.guess and config.sub will be updated.
15# All files in the source tree ($S) with the given name(s) will be replaced 15# All files in the source tree ($S) with the given name(s) will be replaced
16# with the newest available versions chosen from the list of locations in 16# with the newest available versions chosen from the list of locations in
17# gnuconfig_findnewest(), below. 17# gnuconfig_findnewest(), below.
18#
19# gnuconfig_update should generally be called from src_unpack()
18 20
19ECLASS=gnuconfig 21ECLASS=gnuconfig
20INHERITED="$INHERITED $ECLASS" 22INHERITED="$INHERITED $ECLASS"
21 23
22DEPEND="sys-devel/gnuconfig" 24DEPEND="sys-devel/gnuconfig"
87 /usr/share/automake-1.5/config.sub \ 89 /usr/share/automake-1.5/config.sub \
88 /usr/share/automake-1.4/config.sub" 90 /usr/share/automake-1.4/config.sub"
89 local lt_location="/usr/share/libtool/config.sub" 91 local lt_location="/usr/share/libtool/config.sub"
90 92
91 [ -f "${lt_location}" ] && locations="${locations} ${lt_location}" 93 [ -f "${lt_location}" ] && locations="${locations} ${lt_location}"
92 94
93 grep -s '^timestamp' ${locations} | sort -n -t\' -k2 | tail -n 1 | sed 's,/config.sub:.*$,,' 95 grep -s '^timestamp' ${locations} | sort -n -t\' -k2 | tail -n 1 | sed 's,/config.sub:.*$,,'
94} 96}

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20