From 20cdfe02911dc74eb825043dc2a1353c9a8b6d3a Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Mon, 18 Dec 2006 09:44:52 +0000 Subject: Add a patch for KDE's admindir to show that autoepatch can be used for more than just ELT patches. svn path=/trunk/; revision=4 --- patches/kde-autoconf/kde-autoconf.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 patches/kde-autoconf/kde-autoconf.sh (limited to 'patches/kde-autoconf/kde-autoconf.sh') diff --git a/patches/kde-autoconf/kde-autoconf.sh b/patches/kde-autoconf/kde-autoconf.sh new file mode 100644 index 0000000..af582fe --- /dev/null +++ b/patches/kde-autoconf/kde-autoconf.sh @@ -0,0 +1,12 @@ +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +patch_targets() { + # If we are not using autoconf 2.6, just skip the patch for the sake of + # limiting the resulting patche + [[ $(WANT_AUTOCONF=2.5 autoconf --version | head -n 1) == autoconf*2.6* ]] \ + || return 0 + + # Find the admindir, wherever it is. + find "${WORKDIR}" -path '*/admin/cvs.sh' -type f +} -- cgit v1.2.3-65-gdbad