author | deba |
Tue, 12 Apr 2005 17:37:22 +0000 | |
changeset 1345 | 71e0777b65e0 |
parent 542 | 69bde1d90c04 |
child 1348 | 115e42a5b0f7 |
permissions | -rwxr-xr-x |
1 #!/bin/bash
3 prev=
4 for option
5 do
6 if test -n "$prev"
7 then
8 eval "$prev=\$option"
9 prev=
10 continue
11 fi
13 optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
15 case $option in
17 -amver | --amver)
18 prev=amver ;;
19 -amver=* | --amver=*)
20 amver=$optarg ;;
22 -acver | --acver)
23 prev=acver ;;
24 -acver=* | --acver=*)
25 acver=$optarg ;;
27 --help | -h)
28 cat << EOF
29 Usage: $0 [OPTION]
31 Options:
32 -h, --help display this help and exit
33 --amver=VERSION use VERSION version of automake
34 --acver=VERSION use VERSION version of autoconf
36 Expamle:
37 $0 --amver=1.8 --acver=2.59
38 EOF
39 exit 0
40 ;;
42 *)
43 cat << EOF >&2
44 $0: unrecognized option: $option
45 Try \`$0 --help' for more information.
46 EOF
47 exit 1
48 ;;
50 esac
51 done
53 automake=automake
54 aclocal=aclocal
55 autoconf=autoconf
57 if test -n "$amver"
58 then
59 automake=automake-$amver
60 aclocal=aclocal-$amver
61 fi
63 if test -n "$acver"
64 then
65 autoconf=autoconf-$acver
66 fi
68 $aclocal \
69 && libtoolize --force --copy \
70 && $automake --add-missing --copy --gnu \
71 && $autoconf