COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/release @ 2123:85c6f5e82108

lemon-0.5
Last change on this file since 2123:85c6f5e82108 was 1958:5be9c1ca0252, checked in by Alpar Juttner, 19 years ago
  • svn lock doesn't work
  • fix bootstrap switch
  • Property exe set to *
File size: 2.0 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
28# svn lock https://hugo.cs.elte.hu/svn/hugo/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."
74# svn unlock https://hugo.cs.elte.hu/svn/hugo/trunk
Note: See TracBrowser for help on using the repository browser.