Rev | Line | |
---|
[216] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | # The version nr detection is not working. |
---|
| 4 | # It fails if there is a '-' char in the version nr e.g. |
---|
| 5 | # We should not use it until fixed. - Bram |
---|
| 6 | |
---|
| 7 | ## The reason this uses sed instead of "grep --only-matches" |
---|
| 8 | ## is because MinGW's grep is an old version and does not contain that flag. |
---|
| 9 | #automake_version=`automake --version | grep --regexp='[+0-9].[+0-9].[+0-9]' | sed -n 's/[* ()A-Za-z]//g;p'` |
---|
| 10 | #automake_mayor=${automake_version%.*.*} |
---|
| 11 | #automake_minor=${automake_version%.*} |
---|
| 12 | #automake_minor=${automake_minor##*.} |
---|
| 13 | #automake_revision=${automake_version##*.} |
---|
| 14 | #echo "AutoMake Version: $automake_mayor.$automake_minor.$automake_revision" |
---|
| 15 | # |
---|
| 16 | #if [ $automake_mayor -eq 1 ]; then |
---|
| 17 | # if [ $automake_minor -lt 8 ]; then |
---|
| 18 | # echo "Automake must be 1.8.2 or higher, please upgrade" |
---|
| 19 | # exit |
---|
| 20 | # else |
---|
| 21 | # if [ $automake_minor -eq 8 ] && [ $automake_revision -lt 2 ]; then |
---|
| 22 | # echo "Automake must be 1.8.2 or higher, please upgrade" |
---|
| 23 | # exit |
---|
| 24 | # fi |
---|
| 25 | # fi |
---|
| 26 | #fi |
---|
| 27 | |
---|
| 28 | echo "Please make sure that you use automake 1.8.2 or later" |
---|
| 29 | echo "Warnings about underquoted definitions are harmless" |
---|
| 30 | |
---|
| 31 | echo "Running aclocal" |
---|
| 32 | aclocal -I . || exit 1 |
---|
| 33 | echo "Running autoheader" |
---|
| 34 | autoheader || exit 1 |
---|
| 35 | echo "Running automake" |
---|
| 36 | automake --foreign --include-deps --add-missing --copy || exit 1 |
---|
| 37 | echo "Running autoconf" |
---|
| 38 | autoconf || exit 1 |
---|
| 39 | |
---|
| 40 | #./configure $* |
---|
| 41 | |
---|
| 42 | echo "Now you are ready to run ./configure" |
---|
Note: See
TracBrowser
for help on using the repository browser.