#!/usr/bin/env bash # vim: set sw=4 sts=4 et tw=80 : if test "xyes" = x"${BASH_VERSION}" ; then echo "This is not bash!" exit 127 fi trap 'echo "exiting." ; exit 250' 15 KILL_PID=$$ run() { echo ">>> $@" 1>&2 if ! $@ ; then echo "oops!" 1>&2 exit 127 fi } get() { local p=${1} v= shift for v in ${@} ; do type ${p}-${v} &>/dev/null && echo ${p}-${v} && return type ${p}${v//.} &>/dev/null && echo ${p}${v//.} && return done type ${p} &>/dev/null && echo ${p} && return echo "Could not find ${p}" 1>&2 kill $KILL_PID } ./autotools_prepare.bash || exit $? run mkdir -p config run $(get libtoolize 1.5 ) --copy --force --automake rm -f config.cache run $(get aclocal 1.11 ) run $(get autoheader 2.65 2.64 2.63 2.62 2.61 2.60 2.59 ) run $(get autoconf 2.65 2.64 2.63 2.62 2.61 2.60 2.59 ) run $(get automake 1.11 ) -a --copy