[1937] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | set -e |
---|
| 4 | |
---|
| 5 | function make-dir () { |
---|
| 6 | if [ ! -d $1 ]; then |
---|
| 7 | mkdir $1 |
---|
| 8 | fi |
---|
| 9 | } |
---|
| 10 | |
---|
| 11 | make-dir check-compilers-dir |
---|
| 12 | cd check-compilers-dir |
---|
| 13 | |
---|
[1940] | 14 | svn co https://hugo.cs.elte.hu/svn/hugo/trunk || |
---|
| 15 | (echo '*************************************************************'; |
---|
| 16 | echo ' REPOSITORY CANNOT BE UPDATED' |
---|
| 17 | echo '*************************************************************') |
---|
| 18 | |
---|
[1937] | 19 | |
---|
| 20 | VERSION=r`svn info trunk|grep 'Revision:'|cut -d ' ' -f 2` |
---|
| 21 | NAME=lemon |
---|
| 22 | DISTNAME=${NAME}-$VERSION |
---|
| 23 | TARNAME=${DISTNAME}.tar.gz |
---|
| 24 | |
---|
| 25 | function makecheck () { |
---|
| 26 | if [ `which $CXX` ]; then |
---|
| 27 | make-dir $ODIR |
---|
| 28 | cd $ODIR |
---|
| 29 | time ../trunk/configure $* |
---|
| 30 | time make check |
---|
| 31 | cd .. |
---|
| 32 | else |
---|
| 33 | echo |
---|
| 34 | echo '***************************************************************' |
---|
| 35 | echo " COMPILER $CXX CANNOT BE FOUND" |
---|
| 36 | echo '***************************************************************' |
---|
| 37 | echo |
---|
| 38 | fi |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | # CREATE TARBALL |
---|
| 42 | |
---|
| 43 | cd trunk |
---|
| 44 | ./bootstrap --amver=1.7 |
---|
| 45 | cd .. |
---|
| 46 | |
---|
| 47 | # CHECK COMPILERS |
---|
| 48 | |
---|
| 49 | ODIR=gcc-3.3 CXX=g++-3.3 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
| 50 | |
---|
[1938] | 51 | ODIR=gcc-3.4 CXX=g++-3.4 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
[1937] | 52 | |
---|
| 53 | ODIR=gcc-4.0 CXX=g++-4.0 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
| 54 | |
---|
[2007] | 55 | ODIR=gcc-4.1 CXX=g++-4.1 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
| 56 | |
---|
[1944] | 57 | # ODIR=icc-8.0 CXX=icpc-8.0 CXXFLAGS='-Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
[1940] | 58 | |
---|
[1944] | 59 | ODIR=icc-9.0 CXX=icpc-9.0 CXXFLAGS='-Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
| 60 | |
---|
[2062] | 61 | ODIR=mingw makecheck --with-msw --target=i586-mingw32msvc --host=i586-mingw32msvc --build=i386-linux --without-glpk |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | |
---|
[1937] | 66 | echo |
---|
| 67 | echo '**********************************************************************' |
---|
| 68 | echo ' REPOSITORY SEEMS OK' |
---|
| 69 | echo '**********************************************************************' |
---|
| 70 | echo |
---|