author | deba |
Sun, 11 Feb 2007 16:34:51 +0000 | |
changeset 2357 | 5365600a7a5c |
permissions | -rwxr-xr-x |
alpar@1937 | 1 |
#!/bin/bash |
alpar@1937 | 2 |
|
alpar@1937 | 3 |
set -e |
alpar@1937 | 4 |
|
alpar@1937 | 5 |
function make-dir () { |
alpar@1937 | 6 |
if [ ! -d $1 ]; then |
alpar@1937 | 7 |
mkdir $1 |
alpar@1937 | 8 |
fi |
alpar@1937 | 9 |
} |
alpar@1937 | 10 |
|
alpar@1937 | 11 |
rm -rf check-tarball-integrity-dir |
alpar@1937 | 12 |
make-dir check-tarball-integrity-dir |
alpar@1937 | 13 |
cd check-tarball-integrity-dir |
alpar@1937 | 14 |
|
alpar@1937 | 15 |
svn co https://hugo.cs.elte.hu/svn/hugo/trunk |
alpar@1937 | 16 |
|
alpar@1937 | 17 |
VERSION=r`svn info trunk|grep 'Revision:'|cut -d ' ' -f 2` |
alpar@1937 | 18 |
NAME=lemon |
alpar@1937 | 19 |
DISTNAME=${NAME}-$VERSION |
alpar@1937 | 20 |
TARNAME=${DISTNAME}.tar.gz |
alpar@1937 | 21 |
|
alpar@1937 | 22 |
function makecheck () { |
alpar@1937 | 23 |
make-dir $ODIR |
alpar@1937 | 24 |
cd $ODIR |
alpar@1937 | 25 |
time ../$DISTNAME/configure $* |
alpar@1937 | 26 |
time make check |
alpar@1937 | 27 |
cd .. |
alpar@1937 | 28 |
} |
alpar@1937 | 29 |
|
alpar@1937 | 30 |
# CREATE TARBALL |
alpar@1937 | 31 |
|
alpar@1937 | 32 |
cd trunk |
alpar@1937 | 33 |
./bootstrap --amver=1.7 |
alpar@1937 | 34 |
./configure CXXFLAGS='-W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark |
alpar@1937 | 35 |
make doc |
alpar@1937 | 36 |
make |
alpar@1937 | 37 |
make VERSION=${VERSION} distcheck |
alpar@1937 | 38 |
|
alpar@1937 | 39 |
cd .. |
alpar@1937 | 40 |
|
alpar@1937 | 41 |
tar xf trunk/$TARNAME |
alpar@1937 | 42 |
|
alpar@1937 | 43 |
# CHECK COMPILERS |
alpar@1937 | 44 |
|
alpar@1937 | 45 |
ODIR=obj-dir CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
alpar@1937 | 46 |
|
alpar@1937 | 47 |
echo |
alpar@1937 | 48 |
echo '**********************************************************************' |
alpar@1937 | 49 |
echo ' REPOSITORY SEEMS OK' |
alpar@1937 | 50 |
echo '**********************************************************************' |
alpar@1937 | 51 |
echo |