scripts/check-compilers
changeset 1937 7a7a1f95cc24
child 1938 c339ade3ffc3
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/scripts/check-compilers	Wed Feb 01 11:33:16 2006 +0000
     1.3 @@ -0,0 +1,57 @@
     1.4 +#!/bin/bash
     1.5 +
     1.6 +set -e
     1.7 +
     1.8 +function make-dir () {
     1.9 +    if [ ! -d $1 ]; then
    1.10 +	mkdir $1
    1.11 +    fi
    1.12 +}
    1.13 +
    1.14 +make-dir check-compilers-dir
    1.15 +cd check-compilers-dir
    1.16 +
    1.17 +svn co https://hugo.cs.elte.hu/svn/hugo/trunk
    1.18 +
    1.19 +VERSION=r`svn info trunk|grep 'Revision:'|cut -d ' ' -f 2`
    1.20 +NAME=lemon
    1.21 +DISTNAME=${NAME}-$VERSION
    1.22 +TARNAME=${DISTNAME}.tar.gz
    1.23 +
    1.24 +function makecheck () {
    1.25 +    if [ `which $CXX` ]; then
    1.26 +	make-dir $ODIR
    1.27 +	cd $ODIR
    1.28 +	time ../trunk/configure $*
    1.29 +	time make check
    1.30 +	cd ..
    1.31 +    else
    1.32 +	echo
    1.33 +	echo '***************************************************************'
    1.34 +	echo "  COMPILER $CXX CANNOT BE FOUND"
    1.35 +	echo '***************************************************************'
    1.36 +	echo
    1.37 +    fi
    1.38 +}
    1.39 +
    1.40 +# CREATE TARBALL
    1.41 +
    1.42 +cd trunk
    1.43 +./bootstrap --amver=1.7
    1.44 +cd ..
    1.45 +
    1.46 +# CHECK COMPILERS
    1.47 +
    1.48 +ODIR=gcc-3.3 CXX=g++-3.3 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
    1.49 +
    1.50 +ODIR=gcc-3.4 CXX=gcc-3.4 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
    1.51 +
    1.52 +ODIR=gcc-4.0 CXX=g++-4.0 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
    1.53 +
    1.54 +ODIR=icc-9.0 CXX=/opt/intel/cc/9.0/bin/icpc CXXFLAGS='-Werror' makecheck --enable-gui --enable-demo --enable-benchmark
    1.55 +
    1.56 +echo
    1.57 +echo '**********************************************************************'
    1.58 +echo '   REPOSITORY SEEMS OK'
    1.59 +echo '**********************************************************************'
    1.60 +echo