COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/release @ 1955:daca31868d70

Last change on this file since 1955:daca31868d70 was 1955:daca31868d70, checked in by Alpar Juttner, 14 years ago

Change the compilation flag at release make distcheck.
(This setting is probably indifferent, though.)

  • Property exe set to *
File size: 1.9 KB
Line 
1#!/bin/bash
2
3# THE FIRST PARAMETER IS THE VERSION STRING
4
5set -e
6
7function make-dir () {
8    if [ ! -d $1 ]; then
9        mkdir $1
10    fi
11}
12
13VERSION=$1
14PKGNAME='lemon'
15VERSION_STRING='svn-head'
16
17make-dir release-dir
18cd release-dir
19
20echo
21echo '**********************************************************************'
22echo '   CHECK OUT'
23echo '**********************************************************************'
24echo
25
26rm -rf trunk
27svn co https://hugo.cs.elte.hu/svn/hugo/trunk
28svn lock trunk
29
30cd trunk
31
32echo
33echo '**********************************************************************'
34echo "   CHANGE THE VERSION TO ${VERSION}"
35echo '**********************************************************************'
36echo
37
38rpl ${VERSION_STRING} $VERSION configure.ac
39
40
41echo
42echo '**********************************************************************'
43echo '   CREATE TARBALL'
44echo '**********************************************************************'
45echo
46
47./bootstrap --amver-1.7
48./configure CXXFLAGS='-g -O2 -W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark
49make doc
50make distcheck
51
52cd ..
53
54echo
55echo '**********************************************************************'
56echo '   CREATE THE OTHER TAR FILES'
57echo '**********************************************************************'
58echo
59
60mv trunk/${PKGNAME}-${VERSION}.tar.gz .
61tar xzf ${PKGNAME}-${VERSION}.tar.gz
62mv ${PKGNAME}-${VERSION}/doc/html ./${PKGNAME}-doc-${VERSION}
63tar czf ${PKGNAME}-doc-${VERSION}.tar.gz ${PKGNAME}-doc-${VERSION}
64tar czf ${PKGNAME}-${VERSION}-nodoc.tar.gz ${PKGNAME}-${VERSION}
65rm -rf ${PKGNAME}-${VERSION} ${PKGNAME}-doc-${VERSION}
66
67echo
68echo '**********************************************************************'
69echo '   CREATE SVN TAG'
70echo '**********************************************************************'
71echo
72
73svn cp trunk https://hugo.cs.elte.hu/svn/hugo/tags/${PKGNAME}-${VERSION} -m "Version ${VERSION} released."
74svn unlock trunk
Note: See TracBrowser for help on using the repository browser.