[Lemon-commits] [lemon_svn] ladanyi: r1655 - hugo/branches/akos
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:46:49 CET 2006
Author: ladanyi
Date: Sun Mar 20 11:18:48 2005
New Revision: 1655
Modified:
hugo/branches/akos/bootstrap
Log:
Added switches for setting the desired autoconf/automake version. See bootstrap --help.
Modified: hugo/branches/akos/bootstrap
==============================================================================
--- hugo/branches/akos/bootstrap (original)
+++ hugo/branches/akos/bootstrap Sun Mar 20 11:18:48 2005
@@ -1,4 +1,70 @@
-#! /bin/sh
-aclocal-1.7 \
-&& automake-1.7 --gnu --add-missing \
-&& autoconf
+#!/bin/bash
+
+prev=
+for option
+do
+ if test -n "$prev"
+ then
+ eval "$prev=\$option"
+ prev=
+ continue
+ fi
+
+ optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
+
+ case $option in
+
+ -amver | --amver)
+ prev=amver ;;
+ -amver=* | --amver=*)
+ amver=$optarg ;;
+
+ -acver | --acver)
+ prev=acver ;;
+ -acver=* | --acver=*)
+ acver=$optarg ;;
+
+ --help | -h)
+ cat << EOF
+Usage: $0 [OPTION]
+
+Options:
+ -h, --help display this help and exit
+ --amver=VERSION use VERSION version of automake and aclocal
+ --acver=VERSION use VERSION version of autoconf
+
+Expamle:
+ $0 --amver=1.8 --acver=2.59
+EOF
+ exit 0
+ ;;
+
+ *)
+ cat << EOF >&2
+$0: unrecognized option: $option
+Try \`$0 --help' for more information.
+EOF
+ exit 1
+ ;;
+
+ esac
+done
+
+automake=automake
+aclocal=aclocal
+autoconf=autoconf
+
+if test -n "$amver"
+then
+ automake=automake-$amver
+ aclocal=aclocal-$amver
+fi
+
+if test -n "$acver"
+then
+ autoconf=autoconf-$acver
+fi
+
+$aclocal \
+&& $automake --gnu --add-missing \
+&& $autoconf
More information about the Lemon-commits
mailing list