diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-01-07 20:24:50 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2007-01-07 20:24:50 +0000 |
commit | bb9017766f120ae96f938136d76c2a59291fcb90 (patch) | |
tree | f394d0ce934c5b1a452cff3596665d2f24ef620e /patches | |
parent | Replace 'Testing' with 'Applying', use ebegin/eend to give the status of patc... (diff) | |
download | autoepatch-bb9017766f120ae96f938136d76c2a59291fcb90.tar.gz autoepatch-bb9017766f120ae96f938136d76c2a59291fcb90.tar.bz2 autoepatch-bb9017766f120ae96f938136d76c2a59291fcb90.zip |
Add a patchset that simply covers for gnuconfig updating, that can replace both gnuconfig.eclass and econf's calls.HEADmaster
svn path=/trunk/; revision=41
Diffstat (limited to 'patches')
-rw-r--r-- | patches/gnuconfig-update/gnuconfig-update.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/gnuconfig-update/gnuconfig-update.sh b/patches/gnuconfig-update/gnuconfig-update.sh new file mode 100644 index 0000000..33cde23 --- /dev/null +++ b/patches/gnuconfig-update/gnuconfig-update.sh @@ -0,0 +1,18 @@ +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +patch_targets() { + find "${WORKDIR}" -name config.guess -or -name config.sub +} + +patch_required() { + return 0 +} + +patch_trigger_action() { + [[ -f "$1" ]] || return -1 + + local base_param=$(basename "$1") + + cp "${PREFIX}/share/gnuconfig/${base_param}" "$1" +} |