summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2003-11-05 21:25:39 +0000
committerLennart Poettering <lennart@poettering.net>2003-11-05 21:25:39 +0000
commit37b200852c3a57091c4b5424c422608a7ebd3e96 (patch)
tree596f7e8901ff96bbd8df72b20ae2716b7972128f
parent7bc526b9f21cc63b14e91e2852e17503b402e8e7 (diff)
bootstra update
git-svn-id: file:///home/lennart/svn/public/ifplugd/trunk@65 2bf48fe7-cfc1-0310-909f-d9042e1e0fef
-rwxr-xr-xbootstrap.sh17
1 files changed, 13 insertions, 4 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 7697c97..6344bd3 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -17,20 +17,29 @@
# along with ifplugd; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+run_versioned() {
+ local P
+ type -p "$1-$2" &> /dev/null && P="$1-$2" || local P="$1"
+
+ shift 2
+ "$P" "$@"
+}
+
if [ "x$1" = "xam" ] ; then
set -ex
- automake -a -c
+ run_versioned automake 1.7 -a -c
./config.status
else
set -ex
-
rm -rf autom4te.cache
rm -f config.cache
- aclocal
+ run_versioned aclocal 1.7
autoheader
- automake -a -c
+ run_versioned automake 1.7 -a -c
autoconf -Wall
./configure --sysconfdir=/etc "$@"
+
+ make clean
fi