COIN-OR::LEMON - Graph Library

source: lemon-0.x/scripts/release @ 2169:9f71586a3f74

Last change on this file since 2169:9f71586a3f74 was 2124:c3b9c574fa3e, checked in by Alpar Juttner, 18 years ago

Use sed instead of rpl

  • Property exe set to *
File size: 2.0 KB
RevLine 
[1937]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
[1954]14PKGNAME='lemon'
15VERSION_STRING='svn-head'
[1937]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
[1958]28# svn lock https://hugo.cs.elte.hu/svn/hugo/trunk
[1937]29
30cd trunk
31
32echo
33echo '**********************************************************************'
34echo "   CHANGE THE VERSION TO ${VERSION}"
35echo '**********************************************************************'
36echo
37
[2124]38sed "s/${VERSION_STRING}/${VERSION}/" <configure.ac >configure.ac.tmp
39mv configure.ac.tmp configure.ac
[1937]40
41echo
42echo '**********************************************************************'
43echo '   CREATE TARBALL'
44echo '**********************************************************************'
45echo
46
[1958]47./bootstrap --amver=1.7
[1955]48./configure CXXFLAGS='-g -O2 -W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark
[1937]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."
[1958]74# svn unlock https://hugo.cs.elte.hu/svn/hugo/trunk
Note: See TracBrowser for help on using the repository browser.