summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2007-01-07 20:24:50 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2007-01-07 20:24:50 +0000
commitbb9017766f120ae96f938136d76c2a59291fcb90 (patch)
treef394d0ce934c5b1a452cff3596665d2f24ef620e
parentReplace 'Testing' with 'Applying', use ebegin/eend to give the status of patc... (diff)
downloadautoepatch-master.tar.gz
autoepatch-master.tar.bz2
autoepatch-master.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
-rw-r--r--patches/gnuconfig-update/gnuconfig-update.sh18
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"
+}