COIN-OR::LEMON - Graph Library

source: lemon-1.2/scripts/mk-release.sh @ 877:141f9c0db4a3

Last change on this file since 877:141f9c0db4a3 was 733:abf31e4af617, checked in by Alpar Juttner <alpar@…>, 15 years ago

Copyright notices added to scripts

  • Property exe set to *
File size: 1.7 KB
Line 
1#!/bin/bash
2#
3# This file is a part of LEMON, a generic C++ optimization library.
4#
5# Copyright (C) 2003-2009
6# Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
7# (Egervary Research Group on Combinatorial Optimization, EGRES).
8#
9# Permission to use, modify and distribute this software is granted
10# provided that this copyright notice appears in all copies. For
11# precise terms see the accompanying LICENSE file.
12#
13# This software is provided "AS IS" with no warranty of any kind,
14# express or implied, and with no claim as to its suitability for any
15# purpose.
16
17set -e
18
19if [ $# = 0 ]; then
20    echo "Usage: $0 release-id"
21    exit 1
22else
23    export LEMON_VERSION=$1
24fi
25
26echo '*****************************************************************'
27echo ' Start making release tarballs for version '${LEMON_VERSION}
28echo '*****************************************************************'
29
30autoreconf -vif
31./configure
32
33make
34make html
35make distcheck
36tar xf lemon-${LEMON_VERSION}.tar.gz
37zip -r lemon-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
38mv lemon-${LEMON_VERSION}/doc/html lemon-doc-${LEMON_VERSION}
39tar czf lemon-doc-${LEMON_VERSION}.tar.gz lemon-doc-${LEMON_VERSION}
40zip -r lemon-doc-${LEMON_VERSION}.zip lemon-doc-${LEMON_VERSION}
41tar czf lemon-nodoc-${LEMON_VERSION}.tar.gz lemon-${LEMON_VERSION}
42zip -r lemon-nodoc-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
43hg tag -m 'LEMON '${LEMON_VERSION}' released ('$(hg par --template="{node|short}")' tagged as r'${LEMON_VERSION}')' r${LEMON_VERSION}
44
45rm -rf lemon-${LEMON_VERSION} lemon-doc-${LEMON_VERSION}
46
47echo '*****************************************************************'
48echo '  Release '${LEMON_VERSION}' has been created'
49echo '*****************************************************************'
Note: See TracBrowser for help on using the repository browser.