COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/check-compilers @ 2532:06495c0e12f5

Last change on this file since 2532:06495c0e12f5 was 2279:2c3fee01d3ed, checked in by Alpar Juttner, 17 years ago

Update scripts

  • Property exe set to *
File size: 1.8 KB
RevLine 
[1937]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
[1940]14svn co https://hugo.cs.elte.hu/svn/hugo/trunk ||
15(echo '*************************************************************';
16echo '   REPOSITORY CANNOT BE UPDATED'
17echo '*************************************************************')
18
[1937]19
20VERSION=r`svn info trunk|grep 'Revision:'|cut -d ' ' -f 2`
21NAME=lemon
22DISTNAME=${NAME}-$VERSION
23TARNAME=${DISTNAME}.tar.gz
24
25function makecheck () {
[2279]26    if [ `which $(echo $CXX|cut -f1 -d' ' )` ]; then
[1937]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
[2279]44#./bootstrap --amver=1.7
45autoreconf -vi
[1937]46cd ..
47
48# CHECK COMPILERS
49
[2279]50ODIR=gcc-3.3 CXX=g++-3.3 CXXFLAGS='-W -Wall -Werror' makecheck --enable-demo --enable-benchmark
[1937]51
[2279]52ODIR=gcc-3.4 CXX=g++-3.4 CXXFLAGS='-W -Wall -Werror' makecheck --enable-demo --enable-benchmark
[1937]53
[2279]54ODIR=gcc-4.0 CXX=g++-4.0 CXXFLAGS='-W -Wall -Werror' makecheck --enable-demo --enable-benchmark
[1937]55
[2279]56ODIR=gcc-4.1 CXX=g++-4.1 CXXFLAGS='-W -Wall -Werror' makecheck --enable-demo --enable-benchmark
[2007]57
[2279]58# # ODIR=icc-8.0 CXX=icpc-8.0 CXXFLAGS='-Werror' makecheck --enable-demo --enable-benchmark
[1940]59
[2279]60# ODIR=icc-9.0 CXX='icpc-9.0' CXXFLAGS='-Werror' makecheck --enable-demo --enable-benchmark
[1944]61
[2279]62# ODIR=mingw CXX='g++' makecheck --with-msw --target=i586-mingw32msvc --host=i586-mingw32msvc --build=i386-linux --without-glpk
[2062]63
64
65
66
[1937]67echo
68echo '**********************************************************************'
69echo '   REPOSITORY SEEMS OK'
70echo '**********************************************************************'
71echo
Note: See TracBrowser for help on using the repository browser.