COIN-OR::LEMON - Graph Library

source: lemon-main/scripts/mk-release.sh @ 767:11c946fa8d13

Last change on this file since 767:11c946fa8d13 was 564:eda12d8ac953, checked in by Akos Ladanyi <ladanyi@…>, 16 years ago

Add 'demo' make target for building the demo programs

  • Property exe set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2
3set -e
4
5if [ $# = 0 ]; then
6    echo "Usage: $0 release-id"
7    exit 1
8else
9    export LEMON_VERSION=$1
10fi
11
12echo '*****************************************************************'
13echo ' Start making release tarballs for version '${LEMON_VERSION}
14echo '*****************************************************************'
15
16autoreconf -vif
17./configure
18
19make
20make html
21make distcheck
22tar xf lemon-${LEMON_VERSION}.tar.gz
23zip -r lemon-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
24mv lemon-${LEMON_VERSION}/doc/html lemon-doc-${LEMON_VERSION}
25tar czf lemon-doc-${LEMON_VERSION}.tar.gz lemon-doc-${LEMON_VERSION}
26zip -r lemon-doc-${LEMON_VERSION}.zip lemon-doc-${LEMON_VERSION}
27tar czf lemon-nodoc-${LEMON_VERSION}.tar.gz lemon-${LEMON_VERSION}
28zip -r lemon-nodoc-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
29hg tag -m 'LEMON '${LEMON_VERSION}' released ('$(hg par --template="{node|short}")' tagged as r'${LEMON_VERSION}')' r${LEMON_VERSION}
30
31rm -rf lemon-${LEMON_VERSION} lemon-doc-${LEMON_VERSION}
32
33echo '*****************************************************************'
34echo '  Release '${LEMON_VERSION}' has been created'
35echo '*****************************************************************'
Note: See TracBrowser for help on using the repository browser.