scripts/mk-release.sh
author Peter Kovacs <kpeter@inf.elte.hu>
Sat, 20 Feb 2010 18:39:03 +0100
changeset 839 f3bc4e9b5f3a
parent 564 eda12d8ac953
permissions -rwxr-xr-x
New heuristics for MCF algorithms (#340)
and some implementation improvements.

- A useful heuristic is added to NetworkSimplex to make the
initial pivots faster.
- A powerful global update heuristic is added to CostScaling
and the implementation is reworked with various improvements.
- Better relabeling in CostScaling to improve numerical stability
and make the code faster.
- A small improvement is made in CapacityScaling for better
delta computation.
- Add notes to the classes about the usage of vector<char> instead
of vector<bool> for efficiency reasons.
     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 
    17 set -e
    18 
    19 if [ $# = 0 ]; then
    20     echo "Usage: $0 release-id"
    21     exit 1
    22 else
    23     export LEMON_VERSION=$1
    24 fi
    25 
    26 echo '*****************************************************************'
    27 echo ' Start making release tarballs for version '${LEMON_VERSION}
    28 echo '*****************************************************************'
    29 
    30 autoreconf -vif
    31 ./configure
    32 
    33 make
    34 make html
    35 make distcheck
    36 tar xf lemon-${LEMON_VERSION}.tar.gz
    37 zip -r lemon-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
    38 mv lemon-${LEMON_VERSION}/doc/html lemon-doc-${LEMON_VERSION}
    39 tar czf lemon-doc-${LEMON_VERSION}.tar.gz lemon-doc-${LEMON_VERSION}
    40 zip -r lemon-doc-${LEMON_VERSION}.zip lemon-doc-${LEMON_VERSION}
    41 tar czf lemon-nodoc-${LEMON_VERSION}.tar.gz lemon-${LEMON_VERSION}
    42 zip -r lemon-nodoc-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
    43 hg tag -m 'LEMON '${LEMON_VERSION}' released ('$(hg par --template="{node|short}")' tagged as r'${LEMON_VERSION}')' r${LEMON_VERSION}
    44 
    45 rm -rf lemon-${LEMON_VERSION} lemon-doc-${LEMON_VERSION}
    46 
    47 echo '*****************************************************************'
    48 echo '  Release '${LEMON_VERSION}' has been created' 
    49 echo '*****************************************************************'