COIN-OR::LEMON - Graph Library

source: lemon-1.0/scripts/mk-release.sh @ 425:f2620192ab6d

Last change on this file since 425:f2620192ab6d was 391:47b376a5a2a7, checked in by Alpar Juttner <alpar@…>, 16 years ago

Small script making a release

  • 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 --enable-demo
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.