| 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.23 2004/07/13 21:43:28 agriffis Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnuconfig.eclass,v 1.24 2004/08/07 04:24:41 agriffis 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 |
| … | |
… | |
| 27 | # config.sub and config.guess (old default behavior), otherwise update the |
27 | # config.sub and config.guess (old default behavior), otherwise update the |
| 28 | # named files. |
28 | # named files. |
| 29 | gnuconfig_update() { |
29 | gnuconfig_update() { |
| 30 | local startdir # declared here ... used in gnuconfig_do_update |
30 | local startdir # declared here ... used in gnuconfig_do_update |
| 31 | |
31 | |
|
|
32 | local x |
|
|
33 | for ((x = 1; x <= $#; x = x + 1)); do |
|
|
34 | echo "gnuconfig_update arg$x = [${!x}]" |
|
|
35 | done |
|
|
36 | |
| 32 | if [[ $1 == /* ]]; then |
37 | if [[ $1 == */* ]]; then |
| 33 | startdir=$1 |
38 | startdir=$1 |
| 34 | shift |
39 | shift |
| 35 | else |
40 | else |
| 36 | startdir=${S} |
41 | startdir=${S} |
| 37 | fi |
42 | fi |