COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/release @ 2365:751a14b992f2

Last change on this file since 2365:751a14b992f2 was 2279:2c3fee01d3ed, checked in by Alpar Juttner, 14 years ago

Update scripts

  • 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://hugo.cs.elte.hu/svn/hugo/trunk
37# svn lock https://hugo.cs.elte.hu/svn/hugo/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://hugo.cs.elte.hu/svn/hugo/tags/${PKGNAME}-${VERSION} -m "Version ${VERSION} released."
84# svn unlock https://hugo.cs.elte.hu/svn/hugo/trunk
Note: See TracBrowser for help on using the repository browser.