COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/check-compilers @ 1943:7349b09373a0

Last change on this file since 1943:7349b09373a0 was 1940:e47d0614a489, checked in by Alpar Juttner, 19 years ago
  • also works off-line
  • icc-8.0 in (not) tested, as well.
  • Property exe set to *
File size: 1.6 KB
Line 
1#!/bin/bash
2
3set -e
4
5function make-dir () {
6    if [ ! -d $1 ]; then
7        mkdir $1
8    fi
9}
10
11make-dir check-compilers-dir
12cd check-compilers-dir
13
14svn co https://hugo.cs.elte.hu/svn/hugo/trunk ||
15(echo '*************************************************************';
16echo '   REPOSITORY CANNOT BE UPDATED'
17echo '*************************************************************')
18
19
20VERSION=r`svn info trunk|grep 'Revision:'|cut -d ' ' -f 2`
21NAME=lemon
22DISTNAME=${NAME}-$VERSION
23TARNAME=${DISTNAME}.tar.gz
24
25function 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
43cd trunk
44./bootstrap --amver=1.7
45cd ..
46
47# CHECK COMPILERS
48
49ODIR=gcc-3.3 CXX=g++-3.3 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
50
51ODIR=gcc-3.4 CXX=g++-3.4 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
52
53ODIR=gcc-4.0 CXX=g++-4.0 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
54
55# ODIR=icc-8.0 CXX=/opt/intel/cc/8.0/bin/icpc CXXFLAGS='-Werror' makecheck --enable-gui --enable-demo --enable-benchmark
56
57ODIR=icc-9.0 CXX=/opt/intel/cc/9.0/bin/icpc CXXFLAGS='-Werror' makecheck --enable-gui --enable-demo --enable-benchmark
58echo
59echo '**********************************************************************'
60echo '   REPOSITORY SEEMS OK'
61echo '**********************************************************************'
62echo
Note: See TracBrowser for help on using the repository browser.