From 14ac144cc45b92a321a3d6ceebb4736ce6f93b25 Mon Sep 17 00:00:00 2001 From: Manuel Rüger Date: Wed, 22 Jul 2015 11:48:51 +0000 Subject: Remove old. (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key ) --- sys-devel/automake-wrapper/ChangeLog | 10 +- .../automake-wrapper/automake-wrapper-3-r1.ebuild | 29 ---- .../automake-wrapper/automake-wrapper-4.ebuild | 29 ---- .../automake-wrapper/automake-wrapper-5.ebuild | 37 ----- .../automake-wrapper/automake-wrapper-6.ebuild | 37 ----- .../automake-wrapper/automake-wrapper-7.ebuild | 29 ---- .../automake-wrapper/automake-wrapper-8.ebuild | 29 ---- sys-devel/automake-wrapper/files/am-wrapper-3.sh | 159 ------------------ sys-devel/automake-wrapper/files/am-wrapper-4.sh | 159 ------------------ sys-devel/automake-wrapper/files/am-wrapper-5.sh | 154 ----------------- sys-devel/automake-wrapper/files/am-wrapper-6.sh | 184 --------------------- sys-devel/automake-wrapper/files/am-wrapper-7.sh | 184 --------------------- sys-devel/automake-wrapper/files/am-wrapper-8.sh | 181 -------------------- 13 files changed, 9 insertions(+), 1212 deletions(-) delete mode 100644 sys-devel/automake-wrapper/automake-wrapper-3-r1.ebuild delete mode 100644 sys-devel/automake-wrapper/automake-wrapper-4.ebuild delete mode 100644 sys-devel/automake-wrapper/automake-wrapper-5.ebuild delete mode 100644 sys-devel/automake-wrapper/automake-wrapper-6.ebuild delete mode 100644 sys-devel/automake-wrapper/automake-wrapper-7.ebuild delete mode 100644 sys-devel/automake-wrapper/automake-wrapper-8.ebuild delete mode 100755 sys-devel/automake-wrapper/files/am-wrapper-3.sh delete mode 100755 sys-devel/automake-wrapper/files/am-wrapper-4.sh delete mode 100755 sys-devel/automake-wrapper/files/am-wrapper-5.sh delete mode 100755 sys-devel/automake-wrapper/files/am-wrapper-6.sh delete mode 100755 sys-devel/automake-wrapper/files/am-wrapper-7.sh delete mode 100755 sys-devel/automake-wrapper/files/am-wrapper-8.sh (limited to 'sys-devel') diff --git a/sys-devel/automake-wrapper/ChangeLog b/sys-devel/automake-wrapper/ChangeLog index d08a7193c59f..9347117ae566 100644 --- a/sys-devel/automake-wrapper/ChangeLog +++ b/sys-devel/automake-wrapper/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-devel/automake-wrapper # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/ChangeLog,v 1.81 2015/07/06 08:22:55 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/ChangeLog,v 1.82 2015/07/22 11:48:51 mrueg Exp $ + + 22 Jul 2015; Manuel Rüger -automake-wrapper-3-r1.ebuild, + -automake-wrapper-4.ebuild, -automake-wrapper-5.ebuild, + -automake-wrapper-6.ebuild, -automake-wrapper-7.ebuild, + -automake-wrapper-8.ebuild, -files/am-wrapper-3.sh, -files/am-wrapper-4.sh, + -files/am-wrapper-5.sh, -files/am-wrapper-6.sh, -files/am-wrapper-7.sh, + -files/am-wrapper-8.sh: + Remove old. 06 Jul 2015; Mike Frysinger automake-wrapper-10.ebuild: Stabilize for all #553738 by William Hubbs. diff --git a/sys-devel/automake-wrapper/automake-wrapper-3-r1.ebuild b/sys-devel/automake-wrapper/automake-wrapper-3-r1.ebuild deleted file mode 100644 index 510fb03aca30..000000000000 --- a/sys-devel/automake-wrapper/automake-wrapper-3-r1.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/automake-wrapper-3-r1.ebuild,v 1.11 2011/02/06 11:29:37 leio Exp $ - -inherit multilib - -DESCRIPTION="wrapper for automake to manage multiple automake versions" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd" -IUSE="" - -S=${WORKDIR} - -src_install() { - exeinto /usr/$(get_libdir)/misc - newexe "${FILESDIR}"/am-wrapper-${PV}.sh am-wrapper.sh || die - - keepdir /usr/share/aclocal - - dodir /usr/bin - local x= - for x in aclocal automake ; do - dosym ../$(get_libdir)/misc/am-wrapper.sh /usr/bin/${x} - done -} diff --git a/sys-devel/automake-wrapper/automake-wrapper-4.ebuild b/sys-devel/automake-wrapper/automake-wrapper-4.ebuild deleted file mode 100644 index 834f1ae4e6f6..000000000000 --- a/sys-devel/automake-wrapper/automake-wrapper-4.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/automake-wrapper-4.ebuild,v 1.9 2010/05/31 19:18:14 josejx Exp $ - -inherit multilib - -DESCRIPTION="wrapper for automake to manage multiple automake versions" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" - -S=${WORKDIR} - -src_install() { - exeinto /usr/$(get_libdir)/misc - newexe "${FILESDIR}"/am-wrapper-${PV}.sh am-wrapper.sh || die - - keepdir /usr/share/aclocal - - dodir /usr/bin - local x= - for x in aclocal automake ; do - dosym ../$(get_libdir)/misc/am-wrapper.sh /usr/bin/${x} - done -} diff --git a/sys-devel/automake-wrapper/automake-wrapper-5.ebuild b/sys-devel/automake-wrapper/automake-wrapper-5.ebuild deleted file mode 100644 index 4c9a681b7be6..000000000000 --- a/sys-devel/automake-wrapper/automake-wrapper-5.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/automake-wrapper-5.ebuild,v 1.9 2012/02/02 16:07:20 ssuominen Exp $ - -inherit multilib - -DESCRIPTION="wrapper for automake to manage multiple automake versions" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" - -S=${WORKDIR} - -src_unpack() { - cp "${FILESDIR}"/am-wrapper-${PV}.sh "${T}"/ - # usr/bin/aclocal: bad substitution -> /bin/sh != POSIX shell - if use prefix ; then - sed -i -e '1c\#!'"${EPREFIX}"'/bin/sh' "${T}"/am-wrapper-${PV}.sh || die - fi -} - -src_install() { - exeinto /usr/$(get_libdir)/misc - newexe "${T}"/am-wrapper-${PV}.sh am-wrapper.sh || die - - keepdir /usr/share/aclocal - - dodir /usr/bin - local x= - for x in aclocal automake ; do - dosym ../$(get_libdir)/misc/am-wrapper.sh /usr/bin/${x} - done -} diff --git a/sys-devel/automake-wrapper/automake-wrapper-6.ebuild b/sys-devel/automake-wrapper/automake-wrapper-6.ebuild deleted file mode 100644 index 03c731c68fed..000000000000 --- a/sys-devel/automake-wrapper/automake-wrapper-6.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/automake-wrapper-6.ebuild,v 1.2 2012/02/24 22:13:50 vapier Exp $ - -inherit multilib - -DESCRIPTION="wrapper for automake to manage multiple automake versions" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" - -S=${WORKDIR} - -src_unpack() { - cp "${FILESDIR}"/am-wrapper-${PV}.sh "${T}"/ - # usr/bin/aclocal: bad substitution -> /bin/sh != POSIX shell - if use prefix ; then - sed -i -e '1c\#!'"${EPREFIX}"'/bin/sh' "${T}"/am-wrapper-${PV}.sh || die - fi -} - -src_install() { - exeinto /usr/$(get_libdir)/misc - newexe "${T}"/am-wrapper-${PV}.sh am-wrapper.sh || die - - keepdir /usr/share/aclocal - - dodir /usr/bin - local x= - for x in aclocal automake ; do - dosym ../$(get_libdir)/misc/am-wrapper.sh /usr/bin/${x} - done -} diff --git a/sys-devel/automake-wrapper/automake-wrapper-7.ebuild b/sys-devel/automake-wrapper/automake-wrapper-7.ebuild deleted file mode 100644 index 5bc9f19e0ba4..000000000000 --- a/sys-devel/automake-wrapper/automake-wrapper-7.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/automake-wrapper-7.ebuild,v 1.9 2012/08/19 17:05:05 armin76 Exp $ - -DESCRIPTION="wrapper for automake to manage multiple automake versions" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" - -S=${WORKDIR} - -src_unpack() { - cp "${FILESDIR}"/am-wrapper-${PV}.sh "${S}"/ - # usr/bin/aclocal: bad substitution -> /bin/sh != POSIX shell - if use prefix ; then - sed -i -e '1c\#!'"${EPREFIX}"'/bin/sh' "${S}"/am-wrapper-${PV}.sh || die - fi -} - -src_install() { - newbin "${S}"/am-wrapper-${PV}.sh automake || die - dosym automake /usr/bin/aclocal - - keepdir /usr/share/aclocal -} diff --git a/sys-devel/automake-wrapper/automake-wrapper-8.ebuild b/sys-devel/automake-wrapper/automake-wrapper-8.ebuild deleted file mode 100644 index 5860990bb85d..000000000000 --- a/sys-devel/automake-wrapper/automake-wrapper-8.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/automake-wrapper-8.ebuild,v 1.2 2013/02/17 20:37:32 zmedico Exp $ - -DESCRIPTION="wrapper for automake to manage multiple automake versions" -HOMEPAGE="http://www.gentoo.org/" -SRC_URI="" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" - -S=${WORKDIR} - -src_unpack() { - cp "${FILESDIR}"/am-wrapper-${PV}.sh "${S}"/ - # usr/bin/aclocal: bad substitution -> /bin/sh != POSIX shell - if use prefix ; then - sed -i -e '1c\#!'"${EPREFIX}"'/bin/sh' "${S}"/am-wrapper-${PV}.sh || die - fi -} - -src_install() { - newbin "${S}"/am-wrapper-${PV}.sh automake || die - dosym automake /usr/bin/aclocal - - keepdir /usr/share/aclocal -} diff --git a/sys-devel/automake-wrapper/files/am-wrapper-3.sh b/sys-devel/automake-wrapper/files/am-wrapper-3.sh deleted file mode 100755 index 5596468e64ea..000000000000 --- a/sys-devel/automake-wrapper/files/am-wrapper-3.sh +++ /dev/null @@ -1,159 +0,0 @@ -#!/bin/bash -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-3.sh,v 1.3 2006/11/05 10:22:00 vapier Exp $ - -# Based on the am-wrapper.pl script provided by MandrakeSoft -# Rewritten in bash by Gregorio Guidi -# -# Executes the correct automake version. -# -# - defaults to newest version available (hopefully automake-1.10) -# - runs automake-1.9 if: -# - envvar WANT_AUTOMAKE is set to `1.9' -# -or- -# - `Makefile.in' was generated by automake-1.9 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.9 -# - runs automake-1.8 if: -# - envvar WANT_AUTOMAKE is set to `1.8' -# -or- -# - `Makefile.in' was generated by automake-1.8 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.8 -# - runs automake-1.7 if: -# - envvar WANT_AUTOMAKE is set to `1.7' -# -or- -# - `Makefile.in' was generated by automake-1.7 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.7 -# - runs automake-1.6 if: -# - envvar WANT_AUTOMAKE is set to `1.6' -# -or- -# - `Makefile.in' -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.6 -# - runs automake-1.5 if: -# - envvar WANT_AUTOMAKE is set to `1.5' -# -or- -# - `Makefile.in' was generated by automake-1.5 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.5 -# - runs automake-1.4 if: -# - envvar WANT_AUTOMAKE is set to `1.4' -# -or- -# - `Makefile.in' was generated by automake-1.4 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.4 - -if [ "${0##*/}" = "am-wrapper.sh" ] ; then - echo "Don't call this script directly." >&2 - exit 1 -fi - -vers="1.10 1.9 1.8 1.7 1.6 1.5 1.4" - -# -# Export the proper variable/versions and try to locate a usuable -# default (newer versions are preferred) -# -binary="" -for v in ${vers} ; do - eval binary_${v/./_}="${0}-${v}" - - if [ -z "${binary}" ] && [ -x "${0}-${v}" ] ; then - binary="${0}-${v}" - fi -done -if [ -z "${binary}" ] ; then - echo "am-wrapper: Unable to locate any usuable version of automake." >&2 - echo " I tried these versions: ${vers}" >&2 - echo " With a base name of '${0}'." >&2 - exit 1 -fi - -# -# Check the WANT_AUTOMAKE setting. We accept a whitespace delimited -# list of automake versions. -# -if [ -n "${WANT_AUTOMAKE}" ] ; then - for v in ${vers} x ; do - if [ "${v}" = "x" ] ; then - echo "am-wrapper: warning: invalid WANT_AUTOMAKE '${WANT_AUTOMAKE}'; ignoring." >&2 - unset WANT_AUTOMAKE - break - fi - - for wx in ${WANT_AUTOMAKE} ; do - if [ "${wx}" = "${v}" ] ; then - binary="binary_${v/./_}" - binary="${!binary}" - v="x" - fi - done - [ "${v}" = "x" ] && break - done -fi - -# -# autodetect helpers -# -do_awk() { - local file=$1 ; shift - local arg=$1 ; shift - echo $(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" ${file}) -} - -# -# autodetect routine -# -if [ -z "${WANT_AUTOMAKE}" ] ; then - if [ -r "Makefile.in" ] ; then - confversion_mf=$(do_awk Makefile.in 2 "^# Makefile.in generated (automatically )?by automake ([0-9].[0-9]+)") - fi - if [ -r "aclocal.m4" ] ; then - confversion_ac=$(do_awk aclocal.m4 1 'generated automatically by aclocal ([0-9].[0-9]+)') - confversion_am=$(do_awk aclocal.m4 1 '[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?([0-9].[0-9]+)[^)]*\\]?\\)') - fi - - for v in ${vers} ; do - if [ "${confversion_mf}" = "${v}" ] \ - || [ "${confversion_ac}" = "${v}" ] \ - || [ "${confversion_am}" = "${v}" ] ; then - binary="binary_${v/./_}" - binary="${!binary}" - break - fi - done -fi - -if [ "${WANT_AMWRAPPER_DEBUG}" ] ; then - if [ "${WANT_AUTOMAKE}" ] ; then - echo "am-wrapper: DEBUG: WANT_AUTOMAKE is set to ${WANT_AUTOMAKE}" >&2 - fi - echo "am-wrapper: DEBUG: will execute <$binary>" >&2 -fi - -# -# for further consistency -# -for v in ${vers} ; do - mybin="binary_${v/./_}" - if [ "${binary}" = "${!mybin}" ] ; then - export WANT_AUTOMAKE="${v}" - fi -done - -# -# Now try to run the binary -# -if [ ! -x "${binary}" ] ; then - echo "am-wrapper: $binary is missing or not executable." >&2 - echo " Please try emerging the correct version of automake." >&2 - exit 1 -fi - -exec "$binary" "$@" - -echo "am-wrapper: was unable to exec $binary !?" >&2 -exit 1 diff --git a/sys-devel/automake-wrapper/files/am-wrapper-4.sh b/sys-devel/automake-wrapper/files/am-wrapper-4.sh deleted file mode 100755 index 2b222ce29f0d..000000000000 --- a/sys-devel/automake-wrapper/files/am-wrapper-4.sh +++ /dev/null @@ -1,159 +0,0 @@ -#!/usr/bin/env bash -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-4.sh,v 1.2 2010/02/24 08:08:28 mduft Exp $ - -# Based on the am-wrapper.pl script provided by MandrakeSoft -# Rewritten in bash by Gregorio Guidi -# -# Executes the correct automake version. -# -# - defaults to newest version available (hopefully automake-1.10) -# - runs automake-1.9 if: -# - envvar WANT_AUTOMAKE is set to `1.9' -# -or- -# - `Makefile.in' was generated by automake-1.9 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.9 -# - runs automake-1.8 if: -# - envvar WANT_AUTOMAKE is set to `1.8' -# -or- -# - `Makefile.in' was generated by automake-1.8 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.8 -# - runs automake-1.7 if: -# - envvar WANT_AUTOMAKE is set to `1.7' -# -or- -# - `Makefile.in' was generated by automake-1.7 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.7 -# - runs automake-1.6 if: -# - envvar WANT_AUTOMAKE is set to `1.6' -# -or- -# - `Makefile.in' -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.6 -# - runs automake-1.5 if: -# - envvar WANT_AUTOMAKE is set to `1.5' -# -or- -# - `Makefile.in' was generated by automake-1.5 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.5 -# - runs automake-1.4 if: -# - envvar WANT_AUTOMAKE is set to `1.4' -# -or- -# - `Makefile.in' was generated by automake-1.4 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.4 - -if [ "${0##*/}" = "am-wrapper.sh" ] ; then - echo "Don't call this script directly." >&2 - exit 1 -fi - -vers="1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4" - -# -# Export the proper variable/versions and try to locate a usuable -# default (newer versions are preferred) -# -binary="" -for v in ${vers} ; do - eval binary_${v/./_}="${0}-${v}" - - if [ -z "${binary}" ] && [ -x "${0}-${v}" ] ; then - binary="${0}-${v}" - fi -done -if [ -z "${binary}" ] ; then - echo "am-wrapper: Unable to locate any usuable version of automake." >&2 - echo " I tried these versions: ${vers}" >&2 - echo " With a base name of '${0}'." >&2 - exit 1 -fi - -# -# Check the WANT_AUTOMAKE setting. We accept a whitespace delimited -# list of automake versions. -# -if [ -n "${WANT_AUTOMAKE}" ] ; then - for v in ${vers} x ; do - if [ "${v}" = "x" ] ; then - echo "am-wrapper: warning: invalid WANT_AUTOMAKE '${WANT_AUTOMAKE}'; ignoring." >&2 - unset WANT_AUTOMAKE - break - fi - - for wx in ${WANT_AUTOMAKE} ; do - if [ "${wx}" = "${v}" ] ; then - binary="binary_${v/./_}" - binary="${!binary}" - v="x" - fi - done - [ "${v}" = "x" ] && break - done -fi - -# -# autodetect helpers -# -do_awk() { - local file=$1 ; shift - local arg=$1 ; shift - echo $(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" ${file}) -} - -# -# autodetect routine -# -if [ -z "${WANT_AUTOMAKE}" ] ; then - if [ -r "Makefile.in" ] ; then - confversion_mf=$(do_awk Makefile.in 2 "^# Makefile.in generated (automatically )?by automake ([0-9].[0-9]+)") - fi - if [ -r "aclocal.m4" ] ; then - confversion_ac=$(do_awk aclocal.m4 1 'generated automatically by aclocal ([0-9].[0-9]+)') - confversion_am=$(do_awk aclocal.m4 1 '[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?([0-9].[0-9]+)[^)]*\\]?\\)') - fi - - for v in ${vers} ; do - if [ "${confversion_mf}" = "${v}" ] \ - || [ "${confversion_ac}" = "${v}" ] \ - || [ "${confversion_am}" = "${v}" ] ; then - binary="binary_${v/./_}" - binary="${!binary}" - break - fi - done -fi - -if [ "${WANT_AMWRAPPER_DEBUG}" ] ; then - if [ "${WANT_AUTOMAKE}" ] ; then - echo "am-wrapper: DEBUG: WANT_AUTOMAKE is set to ${WANT_AUTOMAKE}" >&2 - fi - echo "am-wrapper: DEBUG: will execute <$binary>" >&2 -fi - -# -# for further consistency -# -for v in ${vers} ; do - mybin="binary_${v/./_}" - if [ "${binary}" = "${!mybin}" ] ; then - export WANT_AUTOMAKE="${v}" - fi -done - -# -# Now try to run the binary -# -if [ ! -x "${binary}" ] ; then - echo "am-wrapper: $binary is missing or not executable." >&2 - echo " Please try emerging the correct version of automake." >&2 - exit 1 -fi - -exec "$binary" "$@" - -echo "am-wrapper: was unable to exec $binary !?" >&2 -exit 1 diff --git a/sys-devel/automake-wrapper/files/am-wrapper-5.sh b/sys-devel/automake-wrapper/files/am-wrapper-5.sh deleted file mode 100755 index dbf6df6b9e26..000000000000 --- a/sys-devel/automake-wrapper/files/am-wrapper-5.sh +++ /dev/null @@ -1,154 +0,0 @@ -#!/bin/sh -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-5.sh,v 1.1 2010/03/07 15:45:40 vapier Exp $ - -# Based on the am-wrapper.pl script provided by MandrakeSoft -# Rewritten in bash by Gregorio Guidi -# -# Executes the correct automake version. -# -# - defaults to newest version available (hopefully automake-1.10) -# - runs automake-1.9 if: -# - envvar WANT_AUTOMAKE is set to `1.9' -# -or- -# - `Makefile.in' was generated by automake-1.9 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.9 -# - runs automake-1.8 if: -# - envvar WANT_AUTOMAKE is set to `1.8' -# -or- -# - `Makefile.in' was generated by automake-1.8 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.8 -# - runs automake-1.7 if: -# - envvar WANT_AUTOMAKE is set to `1.7' -# -or- -# - `Makefile.in' was generated by automake-1.7 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.7 -# - runs automake-1.6 if: -# - envvar WANT_AUTOMAKE is set to `1.6' -# -or- -# - `Makefile.in' -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.6 -# - runs automake-1.5 if: -# - envvar WANT_AUTOMAKE is set to `1.5' -# -or- -# - `Makefile.in' was generated by automake-1.5 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.5 -# - runs automake-1.4 if: -# - envvar WANT_AUTOMAKE is set to `1.4' -# -or- -# - `Makefile.in' was generated by automake-1.4 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.4 - -warn() { printf "am-wrapper: $*\n" 1>&2; } -err() { warn "$@"; exit 1; } - -if [ "${0##*/}" = "am-wrapper.sh" ] ; then - err "Don't call this script directly" -fi - -vers="1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4" - -# -# Export the proper variable/versions and try to locate a usuable -# default (newer versions are preferred) -# -binary="" -for v in ${vers} ; do - if [ -z "${binary}" ] && [ -x "${0}-${v}" ] ; then - binary="${0}-${v}" - fi -done -if [ -z "${binary}" ] ; then - err "Unable to locate any usuable version of automake.\n" \ - "\tI tried these versions: ${vers}\n" \ - "\tWith a base name of '${0}'." -fi - -# -# Check the WANT_AUTOMAKE setting. We accept a whitespace delimited -# list of automake versions. -# -if [ -n "${WANT_AUTOMAKE}" ] ; then - for v in ${vers} x ; do - if [ "${v}" = "x" ] ; then - warn "warning: invalid WANT_AUTOMAKE '${WANT_AUTOMAKE}'; ignoring." - unset WANT_AUTOMAKE - break - fi - - for wx in ${WANT_AUTOMAKE} ; do - if [ "${wx}" = "${v}" ] ; then - binary="${0}-${v}" - v="x" - fi - done - [ "${v}" = "x" ] && break - done -fi - -# -# autodetect helpers -# -do_awk() { - local file=$1 ; shift - local arg=$1 ; shift - echo $(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" ${file}) -} - -# -# autodetect routine -# -if [ -z "${WANT_AUTOMAKE}" ] ; then - if [ -r "Makefile.in" ] ; then - confversion_mf=$(do_awk Makefile.in 2 "^# Makefile.in generated (automatically )?by automake ([0-9].[0-9]+)") - fi - if [ -r "aclocal.m4" ] ; then - confversion_ac=$(do_awk aclocal.m4 1 'generated automatically by aclocal ([0-9].[0-9]+)') - confversion_am=$(do_awk aclocal.m4 1 '[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?([0-9].[0-9]+)[^)]*\\]?\\)') - fi - - for v in ${vers} ; do - if [ "${confversion_mf}" = "${v}" ] || \ - [ "${confversion_ac}" = "${v}" ] || \ - [ "${confversion_am}" = "${v}" ] - then - binary="${0}-${v}" - break - fi - done -fi - -if [ "${WANT_AMWRAPPER_DEBUG}" ] ; then - if [ "${WANT_AUTOMAKE}" ] ; then - warn "DEBUG: WANT_AUTOMAKE is set to ${WANT_AUTOMAKE}" - fi - warn "DEBUG: will execute <$binary>" -fi - -# -# for further consistency -# -for v in ${vers} ; do - if [ "${binary}" = "${0}-${v}" ] ; then - export WANT_AUTOMAKE="${v}" - fi -done - -# -# Now try to run the binary -# -if [ ! -x "${binary}" ] ; then - err "$binary is missing or not executable.\n" \ - "\tPlease try emerging the correct version of automake." -fi - -exec "$binary" "$@" - -err "was unable to exec $binary !?" diff --git a/sys-devel/automake-wrapper/files/am-wrapper-6.sh b/sys-devel/automake-wrapper/files/am-wrapper-6.sh deleted file mode 100755 index f3704d5d2f52..000000000000 --- a/sys-devel/automake-wrapper/files/am-wrapper-6.sh +++ /dev/null @@ -1,184 +0,0 @@ -#!/bin/sh -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-6.sh,v 1.1 2011/10/02 19:51:17 vapier Exp $ - -# Based on the am-wrapper.pl script provided by MandrakeSoft -# Rewritten in bash by Gregorio Guidi -# -# Executes the correct automake version. -# -# - defaults to newest version available (hopefully automake-1.10) -# - runs automake-1.9 if: -# - envvar WANT_AUTOMAKE is set to `1.9' -# -or- -# - `Makefile.in' was generated by automake-1.9 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.9 -# - runs automake-1.8 if: -# - envvar WANT_AUTOMAKE is set to `1.8' -# -or- -# - `Makefile.in' was generated by automake-1.8 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.8 -# - runs automake-1.7 if: -# - envvar WANT_AUTOMAKE is set to `1.7' -# -or- -# - `Makefile.in' was generated by automake-1.7 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.7 -# - runs automake-1.6 if: -# - envvar WANT_AUTOMAKE is set to `1.6' -# -or- -# - `Makefile.in' -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.6 -# - runs automake-1.5 if: -# - envvar WANT_AUTOMAKE is set to `1.5' -# -or- -# - `Makefile.in' was generated by automake-1.5 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.5 -# - runs automake-1.4 if: -# - envvar WANT_AUTOMAKE is set to `1.4' -# -or- -# - `Makefile.in' was generated by automake-1.4 -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.4 - -warn() { printf 'am-wrapper: %s: %b\n' "${argv0}" "$*" 1>&2; } -err() { warn "$@"; exit 1; } -unset IFS -which() { - local p - IFS=: # we don't use IFS anywhere, so don't bother saving/restoring - for p in ${PATH} ; do - p="${p}/$1" - [ -e "${p}" ] && echo "${p}" && return 0 - done - unset IFS - return 1 -} - -# -# Sanitize argv[0] since it isn't always a full path #385201 -# -argv0=${0##*/} -case ${0} in - ${argv0}) - # find it in PATH - if ! full_argv0=$(which "${argv0}") ; then - err "could not locate ${argv0}; file a bug" - fi - ;; - *) - # re-use full/relative paths - full_argv0=$0 - ;; -esac - -if [ "${argv0}" = "am-wrapper.sh" ] ; then - err "Don't call this script directly" -fi - -vers="1.11 1.10 1.9 1.8 1.7 1.6 1.5 1.4" - -# -# Export the proper variable/versions and try to locate a usuable -# default (newer versions are preferred) -# -binary="" -for v in ${vers} ; do - if [ -z "${binary}" ] && [ -x "${full_argv0}-${v}" ] ; then - binary="${full_argv0}-${v}" - break - fi -done -if [ -z "${binary}" ] ; then - err "Unable to locate any usuable version of automake.\n" \ - "\tI tried these versions: ${vers}\n" \ - "\tWith a base name of '${full_argv0}'." -fi - -# -# Check the WANT_AUTOMAKE setting. We accept a whitespace delimited -# list of automake versions. -# -if [ -n "${WANT_AUTOMAKE}" ] ; then - for v in ${vers} x ; do - if [ "${v}" = "x" ] ; then - warn "warning: invalid WANT_AUTOMAKE '${WANT_AUTOMAKE}'; ignoring." - unset WANT_AUTOMAKE - break - fi - - for wx in ${WANT_AUTOMAKE} ; do - if [ "${wx}" = "${v}" ] ; then - binary="${full_argv0}-${v}" - v="x" - fi - done - [ "${v}" = "x" ] && break - done -fi - -# -# autodetect helpers -# -do_awk() { - local file=$1 ; shift - local arg=$1 ; shift - echo $(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" ${file}) -} - -# -# autodetect routine -# -if [ -z "${WANT_AUTOMAKE}" ] ; then - if [ -r "Makefile.in" ] ; then - confversion_mf=$(do_awk Makefile.in 2 "^# Makefile.in generated (automatically )?by automake ([0-9].[0-9]+)") - fi - if [ -r "aclocal.m4" ] ; then - confversion_ac=$(do_awk aclocal.m4 1 'generated automatically by aclocal ([0-9].[0-9]+)') - confversion_am=$(do_awk aclocal.m4 1 '[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?([0-9].[0-9]+)[^)]*\\]?\\)') - fi - - for v in ${vers} ; do - if [ "${confversion_mf}" = "${v}" ] || \ - [ "${confversion_ac}" = "${v}" ] || \ - [ "${confversion_am}" = "${v}" ] - then - binary="${full_argv0}-${v}" - break - fi - done -fi - -if [ "${WANT_AMWRAPPER_DEBUG}" ] ; then - if [ "${WANT_AUTOMAKE}" ] ; then - warn "DEBUG: WANT_AUTOMAKE is set to ${WANT_AUTOMAKE}" - fi - warn "DEBUG: will execute <$binary>" -fi - -# -# for further consistency -# -for v in ${vers} ; do - if [ "${binary}" = "${full_argv0}-${v}" ] ; then - export WANT_AUTOMAKE="${v}" - break - fi -done - -# -# Now try to run the binary -# -if [ ! -x "${binary}" ] ; then - err "$binary is missing or not executable.\n" \ - "\tPlease try emerging the correct version of automake." -fi - -exec "$binary" "$@" - -err "was unable to exec $binary !?" diff --git a/sys-devel/automake-wrapper/files/am-wrapper-7.sh b/sys-devel/automake-wrapper/files/am-wrapper-7.sh deleted file mode 100755 index dd0920f46be9..000000000000 --- a/sys-devel/automake-wrapper/files/am-wrapper-7.sh +++ /dev/null @@ -1,184 +0,0 @@ -#!/bin/sh -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-7.sh,v 1.1 2012/04/26 05:42:10 vapier Exp $ - -# Based on the am-wrapper.pl script provided by MandrakeSoft -# Rewritten in bash by Gregorio Guidi -# -# Executes the correct automake version. -# -# - defaults to newest version available (hopefully automake-1.12) -# - runs automake-1.X (where X is a valid automake version) if: -# - envvar WANT_AUTOMAKE is set to `1.X' -# -or- -# - `Makefile.in' was generated by automake-1.X -# -or- -# - 'aclocal.m4' contain AM_AUTOMAKE_VERSION, specifying the use of 1.X - -warn() { printf 'am-wrapper: %s: %b\n' "${argv0}" "$*" 1>&2; } -err() { warn "$@"; exit 1; } -unset IFS -which() { - local p - IFS=: # we don't use IFS anywhere, so don't bother saving/restoring - for p in ${PATH} ; do - p="${p}/$1" - [ -e "${p}" ] && echo "${p}" && return 0 - done - unset IFS - return 1 -} - -# -# Sanitize argv[0] since it isn't always a full path #385201 -# -argv0=${0##*/} -case ${0} in - ${argv0}) - # find it in PATH - if ! full_argv0=$(which "${argv0}") ; then - err "could not locate ${argv0}; file a bug" - fi - ;; - *) - # re-use full/relative paths - full_argv0=$0 - ;; -esac - -if [ "${argv0}" = "am-wrapper.sh" ] ; then - err "Don't call this script directly" -fi - -if ! seq 0 0 2>/dev/null 1>&2 ; then #338518 - seq() { - local f l i - case $# in - 1) f=1 i=1 l=$1;; - 2) f=$1 i=1 l=$2;; - 3) f=$1 i=$2 l=$3;; - esac - while :; do - [ $l -lt $f -a $i -gt 0 ] && break - [ $f -lt $l -a $i -lt 0 ] && break - echo $f - : $(( f += i )) - done - return 0 - } -fi - -# -# Set up bindings between actual version and WANT_AUTOMAKE; -# Start with last known versions to speed up lookup process. -# -LAST_KNOWN_AUTOMAKE_VER="12" -vers=$(printf '1.%s ' `seq ${LAST_KNOWN_AUTOMAKE_VER} -1 4`) - -find_binary() { - local v - all_vers="${all_vers} $*" - for v in "$@" ; do - if [ -x "${full_argv0}-${v}" ] ; then - binary="${full_argv0}-${v}" - return 0 - fi - done - return 1 -} -binary="" -all_vers="" -if ! find_binary ${vers} ; then - find_binary $(printf '1.%s ' `seq 99 -1 ${LAST_KNOWN_AUTOMAKE_VER}`) -fi - -if [ -z "${binary}" ] ; then - err "Unable to locate any usuable version of automake.\n" \ - "\tI tried these versions:${all_vers}\n" \ - "\tWith a base name of '${full_argv0}'." -fi - -# -# Check the WANT_AUTOMAKE setting. We accept a whitespace delimited -# list of automake versions. -# -if [ -n "${WANT_AUTOMAKE}" ] ; then - for v in ${vers} x ; do - if [ "${v}" = "x" ] ; then - warn "warning: invalid WANT_AUTOMAKE '${WANT_AUTOMAKE}'; ignoring." - unset WANT_AUTOMAKE - break - fi - - for wx in ${WANT_AUTOMAKE} ; do - if [ "${wx}" = "${v}" ] ; then - binary="${full_argv0}-${v}" - v="x" - fi - done - [ "${v}" = "x" ] && break - done -fi - -# -# autodetect helpers -# -do_awk() { - local file=$1 ; shift - local arg=$1 ; shift - echo $(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" ${file}) -} - -# -# autodetect routine -# -if [ -z "${WANT_AUTOMAKE}" ] ; then - if [ -r "Makefile.in" ] ; then - confversion_mf=$(do_awk Makefile.in 2 "^# Makefile.in generated (automatically )?by automake ([0-9].[0-9]+)") - fi - if [ -r "aclocal.m4" ] ; then - confversion_ac=$(do_awk aclocal.m4 1 'generated automatically by aclocal ([0-9].[0-9]+)') - confversion_am=$(do_awk aclocal.m4 1 '[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?([0-9].[0-9]+)[^)]*\\]?\\)') - fi - - for v in ${vers} ; do - if [ "${confversion_mf}" = "${v}" ] || \ - [ "${confversion_ac}" = "${v}" ] || \ - [ "${confversion_am}" = "${v}" ] - then - binary="${full_argv0}-${v}" - break - fi - done -fi - -if [ -n "${WANT_AMWRAPPER_DEBUG}" ] ; then - if [ -n "${WANT_AUTOMAKE}" ] ; then - warn "DEBUG: WANT_AUTOMAKE is set to ${WANT_AUTOMAKE}" - fi - warn "DEBUG: will execute <${binary}>" -fi - -# -# for further consistency -# -for v in ${vers} ; do - if [ "${binary}" = "${full_argv0}-${v}" ] ; then - export WANT_AUTOMAKE="${v}" - break - fi -done - -# -# Now try to run the binary -# -if [ ! -x "${binary}" ] ; then - # this shouldn't happen - err "${binary} is missing or not executable.\n" \ - "\tPlease try emerging the correct version of automake." -fi - -exec "${binary}" "$@" - -err "was unable to exec ${binary} !?" diff --git a/sys-devel/automake-wrapper/files/am-wrapper-8.sh b/sys-devel/automake-wrapper/files/am-wrapper-8.sh deleted file mode 100755 index 1602316cd28f..000000000000 --- a/sys-devel/automake-wrapper/files/am-wrapper-8.sh +++ /dev/null @@ -1,181 +0,0 @@ -#!/bin/sh -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-8.sh,v 1.2 2013/02/04 14:00:23 aballier Exp $ - -# Executes the correct automake version. -# -# If WANT_AUTOMAKE is set (can be a whitespace delimited list of versions): -# - attempt to find an installed version using those -# - if magic keyword 'latest' is found, pick the latest version that exists -# - if nothing found, warn, and proceed as if WANT_AUTOMAKE was not set (below) -# If WANT_AUTOMAKE is not set: -# - Try to detect the version of automake used to generate things (look at -# Makefile.in and aclocal.m4 and any other useful file) -# - If detected version is not found, warn and proceed as if blank slate -# - Try to locate the latest version of automake that exists and run it - -(set -o posix) 2>/dev/null && set -o posix - -_stderr() { printf 'am-wrapper: %s: %b\n' "${argv0}" "$*" 1>&2; } -warn() { _stderr "warning: $*"; } -err() { _stderr "error: $*"; exit 1; } -unset IFS -which() { - local p - IFS=: # we don't use IFS anywhere, so don't bother saving/restoring - for p in ${PATH} ; do - p="${p}/$1" - [ -e "${p}" ] && echo "${p}" && return 0 - done - unset IFS - return 1 -} - -# -# Sanitize argv[0] since it isn't always a full path #385201 -# -argv0=${0##*/} -case $0 in - ${argv0}) - # find it in PATH - if ! full_argv0=$(which "${argv0}") ; then - err "could not locate ${argv0}; file a bug" - fi - ;; - *) - # re-use full/relative paths - full_argv0=$0 - ;; -esac - -if ! seq 0 0 2>/dev/null 1>&2 ; then #338518 - seq() { - local f l i - case $# in - 1) f=1 i=1 l=$1;; - 2) f=$1 i=1 l=$2;; - 3) f=$1 i=$2 l=$3;; - esac - while :; do - [ $l -lt $f -a $i -gt 0 ] && break - [ $f -lt $l -a $i -lt 0 ] && break - echo $f - : $(( f += i )) - done - return 0 - } -fi - -# -# Set up bindings between actual version and WANT_AUTOMAKE; -# Start with last known versions to speed up lookup process. -# -LAST_KNOWN_AUTOMAKE_VER="13" -vers=$(printf '1.%s ' `seq ${LAST_KNOWN_AUTOMAKE_VER} -1 4`) - -# -# Helper to scan for a usable program based on version. -# -binary= -all_vers= -find_binary() { - local v - all_vers="${all_vers} $*" # For error messages. - for v ; do - if [ -x "${full_argv0}-${v}" ] ; then - binary="${full_argv0}-${v}" - binary_ver=${v} - return 0 - fi - done - return 1 -} - -# -# Try and find a usable automake version. First check the WANT_AUTOMAKE -# setting (whitespace delimited list), then fallback to the latest. -# -find_latest() { - if ! find_binary ${vers} ; then - # Brute force it. - find_binary $(printf '1.%s ' `seq 99 -1 ${LAST_KNOWN_AUTOMAKE_VER}`) - fi -} -for wx in ${WANT_AUTOMAKE:-latest} ; do - if [ "${wx}" = "latest" ] ; then - find_latest && break - else - find_binary ${wx} && break - fi -done - -if [ -z "${binary}" ] && [ -n "${WANT_AUTOMAKE}" ] ; then - warn "could not locate installed version for WANT_AUTOMAKE='${WANT_AUTOMAKE}'; ignoring" - unset WANT_AUTOMAKE - find_latest -fi - -if [ -z "${binary}" ] ; then - err "Unable to locate any usuable version of automake.\n" \ - "\tI tried these versions:${all_vers}\n" \ - "\tWith a base name of '${full_argv0}'." -fi - -# -# autodetect helpers -# -do_awk() { - local file=$1 ; shift - local arg=$1 ; shift - local v=$(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" "${file}") - case " ${auto_vers} " in - *" ${v} "*) ;; - *) auto_vers="${auto_vers:+${auto_vers} }${v}" ;; - esac -} - -# -# autodetect routine -# -if [ -z "${WANT_AUTOMAKE}" ] ; then - auto_vers= - if [ -r "Makefile.in" ] ; then - do_awk Makefile.in 2 "^# Makefile.in generated (automatically )?by automake ([0-9].[0-9]+)" - fi - if [ -r "aclocal.m4" ] ; then - do_awk aclocal.m4 1 'generated automatically by aclocal ([0-9].[0-9]+)' - do_awk aclocal.m4 1 '[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?([0-9].[0-9]+)[^)]*\\]?\\)' - fi - # We don't need to set $binary here as it has already been setup for us - # earlier to the latest available version. - if [ -n "${auto_vers}" ] ; then - if ! find_binary ${auto_vers} ; then - warn "auto-detected versions not found (${auto_vers}); falling back to latest available" - fi - fi -fi - -if [ -n "${WANT_AMWRAPPER_DEBUG}" ] ; then - if [ -n "${WANT_AUTOMAKE}" ] ; then - warn "DEBUG: WANT_AUTOMAKE is set to ${WANT_AUTOMAKE}" - fi - warn "DEBUG: will execute <${binary}>" -fi - -# -# for further consistency -# -export WANT_AUTOMAKE="${binary_ver}" - -# -# Now try to run the binary -# -if [ ! -x "${binary}" ] ; then - # this shouldn't happen - err "${binary} is missing or not executable.\n" \ - "\tPlease try installing the correct version of automake." -fi - -exec "${binary}" "$@" -# The shell will error out if `exec` failed. -- cgit v1.2.3-65-gdbad