1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/bootstrap Wed Jun 21 11:10:00 2006 +0000
1.3 @@ -0,0 +1,85 @@
1.4 +#!/bin/bash
1.5 +
1.6 +quiet=0
1.7 +function quiet { [[ $quiet == 1 ]]; }
1.8 +
1.9 +if [[ "$1" == "-q" ]]; then
1.10 + quiet=1
1.11 + shift
1.12 +fi
1.13 +
1.14 +prev=
1.15 +for option
1.16 +do
1.17 + if test -n "$prev"
1.18 + then
1.19 + eval "$prev=\$option"
1.20 + prev=
1.21 + continue
1.22 + fi
1.23 +
1.24 + optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
1.25 +
1.26 + case $option in
1.27 +
1.28 + -amver | --amver)
1.29 + prev=amver ;;
1.30 + -amver=* | --amver=*)
1.31 + amver=$optarg ;;
1.32 +
1.33 + -acver | --acver)
1.34 + prev=acver ;;
1.35 + -acver=* | --acver=*)
1.36 + acver=$optarg ;;
1.37 +
1.38 + --help | -h)
1.39 + cat << EOF
1.40 +Usage: $0 [OPTION]
1.41 +
1.42 +Options:
1.43 + -h, --help display this help and exit
1.44 + --amver=VERSION use VERSION version of automake
1.45 + --acver=VERSION use VERSION version of autoconf
1.46 +
1.47 +Expamle:
1.48 + $0 --amver=1.8 --acver=2.59
1.49 +EOF
1.50 + exit 0
1.51 + ;;
1.52 +
1.53 + *)
1.54 + cat << EOF >&2
1.55 +$0: unrecognized option: $option
1.56 +Try \`$0 --help' for more information.
1.57 +EOF
1.58 + exit 1
1.59 + ;;
1.60 +
1.61 + esac
1.62 +done
1.63 +
1.64 +automake=automake
1.65 +aclocal=aclocal
1.66 +autoconf=autoconf
1.67 +autoheader=autoheader
1.68 +
1.69 +if test -n "$amver"
1.70 +then
1.71 + automake=automake-$amver
1.72 + aclocal=aclocal-$amver
1.73 +fi
1.74 +
1.75 +if test -n "$acver"
1.76 +then
1.77 + autoconf=autoconf-$acver
1.78 + autoheader=autoheader-$acver
1.79 +fi
1.80 +
1.81 +set -e
1.82 +quiet || set -x
1.83 +
1.84 +autopoint
1.85 +$aclocal -I m4
1.86 +$autoconf
1.87 +$autoheader
1.88 +$automake --add-missing --copy --gnu