COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/check-compilers @ 1937:7a7a1f95cc24

Last change on this file since 1937:7a7a1f95cc24 was 1937:7a7a1f95cc24, checked in by Alpar Juttner, 19 years ago

Some useful scripts:
check-compiler: test whether the repo compiles warningless

with various compilers.

check-integrity: checks whether everything is svn-added,

the makefiles are correct etc.

release: creates a version numbered release. Is modifies the repository.

DO NOT PLAY WITH IT!

  • Property exe set to *
File size: 1.4 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
16VERSION=r`svn info trunk|grep 'Revision:'|cut -d ' ' -f 2`
17NAME=lemon
18DISTNAME=${NAME}-$VERSION
19TARNAME=${DISTNAME}.tar.gz
20
21function makecheck () {
22    if [ `which $CXX` ]; then
23        make-dir $ODIR
24        cd $ODIR
25        time ../trunk/configure $*
26        time make check
27        cd ..
28    else
29        echo
30        echo '***************************************************************'
31        echo "  COMPILER $CXX CANNOT BE FOUND"
32        echo '***************************************************************'
33        echo
34    fi
35}
36
37# CREATE TARBALL
38
39cd trunk
40./bootstrap --amver=1.7
41cd ..
42
43# CHECK COMPILERS
44
45ODIR=gcc-3.3 CXX=g++-3.3 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
46
47ODIR=gcc-3.4 CXX=gcc-3.4 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
48
49ODIR=gcc-4.0 CXX=g++-4.0 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark
50
51ODIR=icc-9.0 CXX=/opt/intel/cc/9.0/bin/icpc CXXFLAGS='-Werror' makecheck --enable-gui --enable-demo --enable-benchmark
52
53echo
54echo '**********************************************************************'
55echo '   REPOSITORY SEEMS OK'
56echo '**********************************************************************'
57echo
Note: See TracBrowser for help on using the repository browser.