|
Last change
on this file since 2111:ea1fa1bc3f6d was
1937:7a7a1f95cc24,
checked in by Alpar Juttner, 20 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:
997 bytes
|
| Rev | Line | |
|---|
| [1937] | 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 | rm -rf check-tarball-integrity-dir |
|---|
| 12 | make-dir check-tarball-integrity-dir |
|---|
| 13 | cd check-tarball-integrity-dir |
|---|
| 14 | |
|---|
| 15 | svn co https://hugo.cs.elte.hu/svn/hugo/trunk |
|---|
| 16 | |
|---|
| 17 | VERSION=r`svn info trunk|grep 'Revision:'|cut -d ' ' -f 2` |
|---|
| 18 | NAME=lemon |
|---|
| 19 | DISTNAME=${NAME}-$VERSION |
|---|
| 20 | TARNAME=${DISTNAME}.tar.gz |
|---|
| 21 | |
|---|
| 22 | function makecheck () { |
|---|
| 23 | make-dir $ODIR |
|---|
| 24 | cd $ODIR |
|---|
| 25 | time ../$DISTNAME/configure $* |
|---|
| 26 | time make check |
|---|
| 27 | cd .. |
|---|
| 28 | } |
|---|
| 29 | |
|---|
| 30 | # CREATE TARBALL |
|---|
| 31 | |
|---|
| 32 | cd trunk |
|---|
| 33 | ./bootstrap --amver=1.7 |
|---|
| 34 | ./configure CXXFLAGS='-W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark |
|---|
| 35 | make doc |
|---|
| 36 | make |
|---|
| 37 | make VERSION=${VERSION} distcheck |
|---|
| 38 | |
|---|
| 39 | cd .. |
|---|
| 40 | |
|---|
| 41 | tar xf trunk/$TARNAME |
|---|
| 42 | |
|---|
| 43 | # CHECK COMPILERS |
|---|
| 44 | |
|---|
| 45 | ODIR=obj-dir CXXFLAGS='-W -Wall -Werror' makecheck --enable-gui --enable-demo --enable-benchmark |
|---|
| 46 | |
|---|
| 47 | echo |
|---|
| 48 | echo '**********************************************************************' |
|---|
| 49 | echo ' REPOSITORY SEEMS OK' |
|---|
| 50 | echo '**********************************************************************' |
|---|
| 51 | echo |
|---|
Note: See
TracBrowser
for help on using the repository browser.