scripts/mk-release.sh
author Peter Kovacs <kpeter@inf.elte.hu>
Thu, 06 Aug 2009 20:12:43 +0200
changeset 760 83ce7ce39f21
parent 508 47b376a5a2a7
child 733 abf31e4af617
permissions -rwxr-xr-x
Rework and fix the implementation of MinMeanCycle (#179)

- Fix the handling of the cycle means.
- Many implementation improvements:
- More efficient data storage for the strongly connected
components.
- Better handling of BFS queues.
- Merge consecutive BFS searches (perform two BFS searches
instead of three).

This version is about two times faster on average and an order of
magnitude faster if there are a lot of strongly connected components.
alpar@508
     1
#!/bin/bash
alpar@508
     2
alpar@508
     3
set -e
alpar@508
     4
alpar@508
     5
if [ $# = 0 ]; then
alpar@508
     6
    echo "Usage: $0 release-id"
alpar@508
     7
    exit 1
alpar@508
     8
else
alpar@508
     9
    export LEMON_VERSION=$1
alpar@508
    10
fi
alpar@508
    11
alpar@508
    12
echo '*****************************************************************'
alpar@508
    13
echo ' Start making release tarballs for version '${LEMON_VERSION}
alpar@508
    14
echo '*****************************************************************'
alpar@508
    15
alpar@508
    16
autoreconf -vif
ladanyi@564
    17
./configure
alpar@508
    18
alpar@508
    19
make
alpar@508
    20
make html
alpar@508
    21
make distcheck
alpar@508
    22
tar xf lemon-${LEMON_VERSION}.tar.gz
alpar@508
    23
zip -r lemon-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
alpar@508
    24
mv lemon-${LEMON_VERSION}/doc/html lemon-doc-${LEMON_VERSION}
alpar@508
    25
tar czf lemon-doc-${LEMON_VERSION}.tar.gz lemon-doc-${LEMON_VERSION}
alpar@508
    26
zip -r lemon-doc-${LEMON_VERSION}.zip lemon-doc-${LEMON_VERSION}
alpar@508
    27
tar czf lemon-nodoc-${LEMON_VERSION}.tar.gz lemon-${LEMON_VERSION}
alpar@508
    28
zip -r lemon-nodoc-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
alpar@508
    29
hg tag -m 'LEMON '${LEMON_VERSION}' released ('$(hg par --template="{node|short}")' tagged as r'${LEMON_VERSION}')' r${LEMON_VERSION}
alpar@508
    30
alpar@508
    31
rm -rf lemon-${LEMON_VERSION} lemon-doc-${LEMON_VERSION}
alpar@508
    32
alpar@508
    33
echo '*****************************************************************'
alpar@508
    34
echo '  Release '${LEMON_VERSION}' has been created' 
alpar@508
    35
echo '*****************************************************************'