COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/release @ 2626:324cfbf66a12

Last change on this file since 2626:324cfbf66a12 was 2567:62a9d46303d9, checked in by Alpar Juttner, 17 years ago

Update the server and the repository names to lemon.

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