lemon-1.0
|
Last change
on this file since 2647:aa4a3a04fb4c was
2647:aa4a3a04fb4c,
checked in by Akos Ladanyi, 19 years ago
|
|
Copied the autotools files from trunk and commented them out so that configure and make succeeds.
|
|
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | quiet=0 |
|---|
| 4 | function quiet { [[ $quiet == 1 ]]; } |
|---|
| 5 | |
|---|
| 6 | if [[ "$1" == "-q" ]]; then |
|---|
| 7 | quiet=1 |
|---|
| 8 | shift |
|---|
| 9 | fi |
|---|
| 10 | |
|---|
| 11 | prev= |
|---|
| 12 | for option |
|---|
| 13 | do |
|---|
| 14 | if test -n "$prev" |
|---|
| 15 | then |
|---|
| 16 | eval "$prev=\$option" |
|---|
| 17 | prev= |
|---|
| 18 | continue |
|---|
| 19 | fi |
|---|
| 20 | |
|---|
| 21 | optarg=`expr "x$option" : 'x[^=]*=\(.*\)'` |
|---|
| 22 | |
|---|
| 23 | case $option in |
|---|
| 24 | |
|---|
| 25 | -amver | --amver) |
|---|
| 26 | prev=amver ;; |
|---|
| 27 | -amver=* | --amver=*) |
|---|
| 28 | amver=$optarg ;; |
|---|
| 29 | |
|---|
| 30 | -acver | --acver) |
|---|
| 31 | prev=acver ;; |
|---|
| 32 | -acver=* | --acver=*) |
|---|
| 33 | acver=$optarg ;; |
|---|
| 34 | |
|---|
| 35 | --help | -h) |
|---|
| 36 | cat << EOF |
|---|
| 37 | Usage: $0 [OPTION] |
|---|
| 38 | |
|---|
| 39 | Options: |
|---|
| 40 | -h, --help display this help and exit |
|---|
| 41 | --amver=VERSION use VERSION version of automake |
|---|
| 42 | --acver=VERSION use VERSION version of autoconf |
|---|
| 43 | |
|---|
| 44 | Expamle: |
|---|
| 45 | $0 --amver=1.8 --acver=2.59 |
|---|
| 46 | EOF |
|---|
| 47 | exit 0 |
|---|
| 48 | ;; |
|---|
| 49 | |
|---|
| 50 | *) |
|---|
| 51 | cat << EOF >&2 |
|---|
| 52 | $0: unrecognized option: $option |
|---|
| 53 | Try \`$0 --help' for more information. |
|---|
| 54 | EOF |
|---|
| 55 | exit 1 |
|---|
| 56 | ;; |
|---|
| 57 | |
|---|
| 58 | esac |
|---|
| 59 | done |
|---|
| 60 | |
|---|
| 61 | automake=automake |
|---|
| 62 | aclocal=aclocal |
|---|
| 63 | autoconf=autoconf |
|---|
| 64 | autoheader=autoheader |
|---|
| 65 | |
|---|
| 66 | if test -n "$amver" |
|---|
| 67 | then |
|---|
| 68 | automake=automake-$amver |
|---|
| 69 | aclocal=aclocal-$amver |
|---|
| 70 | fi |
|---|
| 71 | |
|---|
| 72 | if test -n "$acver" |
|---|
| 73 | then |
|---|
| 74 | autoconf=autoconf-$acver |
|---|
| 75 | autoheader=autoheader-$acver |
|---|
| 76 | fi |
|---|
| 77 | |
|---|
| 78 | set -e |
|---|
| 79 | quiet || set -x |
|---|
| 80 | |
|---|
| 81 | $aclocal -I m4 |
|---|
| 82 | (quiet && exec > /dev/null; libtoolize --force --copy) |
|---|
| 83 | $autoconf |
|---|
| 84 | $autoheader |
|---|
| 85 | $automake --add-missing --copy --gnu |
|---|
Note: See
TracBrowser
for help on using the repository browser.