COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/check-tarball-integrity @ 2169:9f71586a3f74

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