author | Peter Kovacs <kpeter@inf.elte.hu> |
Sat, 10 Oct 2009 08:18:46 +0200 | |
changeset 755 | 134852d7fb0a |
parent 564 | eda12d8ac953 |
permissions | -rwxr-xr-x |
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 '*****************************************************************' |