From bb9017766f120ae96f938136d76c2a59291fcb90 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Sun, 7 Jan 2007 20:24:50 +0000 Subject: Add a patchset that simply covers for gnuconfig updating, that can replace both gnuconfig.eclass and econf's calls. svn path=/trunk/; revision=41 --- patches/gnuconfig-update/gnuconfig-update.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/gnuconfig-update/gnuconfig-update.sh 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" +} -- cgit v1.2.3-65-gdbad