scripts/mk-release.sh
author Peter Kovacs <kpeter@inf.elte.hu>
Thu, 12 Nov 2009 23:26:13 +0100
changeset 806 fa6f37d7a25b
parent 564 eda12d8ac953
permissions -rwxr-xr-x
Entirely rework CapacityScaling (#180)

- Use the new interface similarly to NetworkSimplex.
- Rework the implementation using an efficient internal structure
for handling the residual network. This improvement made the
code much faster (up to 2-5 times faster on large graphs).
- Handle GEQ supply type (LEQ is not supported).
- Handle negative costs for arcs of finite capacity.
(Note that this algorithm cannot handle arcs of negative cost
and infinite upper bound, thus it returns UNBOUNDED if such
an arc exists.)
- Extend the documentation.
alpar@497
     1
#!/bin/bash
alpar@733
     2
#
alpar@733
     3
# This file is a part of LEMON, a generic C++ optimization library.
alpar@733
     4
#
alpar@733
     5
# Copyright (C) 2003-2009
alpar@733
     6
# Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
alpar@733
     7
# (Egervary Research Group on Combinatorial Optimization, EGRES).
alpar@733
     8
#
alpar@733
     9
# Permission to use, modify and distribute this software is granted
alpar@733
    10
# provided that this copyright notice appears in all copies. For
alpar@733
    11
# precise terms see the accompanying LICENSE file.
alpar@733
    12
#
alpar@733
    13
# This software is provided "AS IS" with no warranty of any kind,
alpar@733
    14
# express or implied, and with no claim as to its suitability for any
alpar@733
    15
# purpose.
alpar@497
    16
alpar@497
    17
set -e
alpar@497
    18
alpar@497
    19
if [ $# = 0 ]; then
alpar@497
    20
    echo "Usage: $0 release-id"
alpar@497
    21
    exit 1
alpar@497
    22
else
alpar@497
    23
    export LEMON_VERSION=$1
alpar@497
    24
fi
alpar@497
    25
alpar@497
    26
echo '*****************************************************************'
alpar@497
    27
echo ' Start making release tarballs for version '${LEMON_VERSION}
alpar@497
    28
echo '*****************************************************************'
alpar@497
    29
alpar@497
    30
autoreconf -vif
ladanyi@564
    31
./configure
alpar@497
    32
alpar@497
    33
make
alpar@497
    34
make html
alpar@497
    35
make distcheck
alpar@497
    36
tar xf lemon-${LEMON_VERSION}.tar.gz
alpar@497
    37
zip -r lemon-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
alpar@497
    38
mv lemon-${LEMON_VERSION}/doc/html lemon-doc-${LEMON_VERSION}
alpar@497
    39
tar czf lemon-doc-${LEMON_VERSION}.tar.gz lemon-doc-${LEMON_VERSION}
alpar@497
    40
zip -r lemon-doc-${LEMON_VERSION}.zip lemon-doc-${LEMON_VERSION}
alpar@497
    41
tar czf lemon-nodoc-${LEMON_VERSION}.tar.gz lemon-${LEMON_VERSION}
alpar@497
    42
zip -r lemon-nodoc-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
alpar@497
    43
hg tag -m 'LEMON '${LEMON_VERSION}' released ('$(hg par --template="{node|short}")' tagged as r'${LEMON_VERSION}')' r${LEMON_VERSION}
alpar@497
    44
alpar@497
    45
rm -rf lemon-${LEMON_VERSION} lemon-doc-${LEMON_VERSION}
alpar@497
    46
alpar@497
    47
echo '*****************************************************************'
alpar@497
    48
echo '  Release '${LEMON_VERSION}' has been created' 
alpar@497
    49
echo '*****************************************************************'