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!
|
|
File size:
1.4 KB
|
Line | |
---|
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 | |
---|
14 | svn co https://hugo.cs.elte.hu/svn/hugo/trunk |
---|
15 | |
---|
16 | VERSION=r`svn info trunk|grep 'Revision:'|cut -d ' ' -f 2` |
---|
17 | NAME=lemon |
---|
18 | DISTNAME=${NAME}-$VERSION |
---|
19 | TARNAME=${DISTNAME}.tar.gz |
---|
20 | |
---|
21 | function 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 | |
---|
39 | cd trunk |
---|
40 | ./bootstrap --amver=1.7 |
---|
41 | cd .. |
---|
42 | |
---|
43 | # CHECK COMPILERS |
---|
44 | |
---|
45 | ODIR=gcc-3.3 CXX=g++-3.3 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
46 | |
---|
47 | ODIR=gcc-3.4 CXX=gcc-3.4 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
48 | |
---|
49 | ODIR=gcc-4.0 CXX=g++-4.0 CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
50 | |
---|
51 | ODIR=icc-9.0 CXX=/opt/intel/cc/9.0/bin/icpc CXXFLAGS='-Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
---|
52 | |
---|
53 | echo |
---|
54 | echo '**********************************************************************' |
---|
55 | echo ' REPOSITORY SEEMS OK' |
---|
56 | echo '**********************************************************************' |
---|
57 | echo |
---|
Note: See
TracBrowser
for help on using the repository browser.