1.1 --- a/scripts/mk-release.sh Sun Jan 29 22:33:14 2012 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,49 +0,0 @@
1.4 -#!/bin/bash
1.5 -#
1.6 -# This file is a part of LEMON, a generic C++ optimization library.
1.7 -#
1.8 -# Copyright (C) 2003-2009
1.9 -# Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
1.10 -# (Egervary Research Group on Combinatorial Optimization, EGRES).
1.11 -#
1.12 -# Permission to use, modify and distribute this software is granted
1.13 -# provided that this copyright notice appears in all copies. For
1.14 -# precise terms see the accompanying LICENSE file.
1.15 -#
1.16 -# This software is provided "AS IS" with no warranty of any kind,
1.17 -# express or implied, and with no claim as to its suitability for any
1.18 -# purpose.
1.19 -
1.20 -set -e
1.21 -
1.22 -if [ $# = 0 ]; then
1.23 - echo "Usage: $0 release-id"
1.24 - exit 1
1.25 -else
1.26 - export LEMON_VERSION=$1
1.27 -fi
1.28 -
1.29 -echo '*****************************************************************'
1.30 -echo ' Start making release tarballs for version '${LEMON_VERSION}
1.31 -echo '*****************************************************************'
1.32 -
1.33 -autoreconf -vif
1.34 -./configure
1.35 -
1.36 -make
1.37 -make html
1.38 -make distcheck
1.39 -tar xf lemon-${LEMON_VERSION}.tar.gz
1.40 -zip -r lemon-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
1.41 -mv lemon-${LEMON_VERSION}/doc/html lemon-doc-${LEMON_VERSION}
1.42 -tar czf lemon-doc-${LEMON_VERSION}.tar.gz lemon-doc-${LEMON_VERSION}
1.43 -zip -r lemon-doc-${LEMON_VERSION}.zip lemon-doc-${LEMON_VERSION}
1.44 -tar czf lemon-nodoc-${LEMON_VERSION}.tar.gz lemon-${LEMON_VERSION}
1.45 -zip -r lemon-nodoc-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
1.46 -hg tag -m 'LEMON '${LEMON_VERSION}' released ('$(hg par --template="{node|short}")' tagged as r'${LEMON_VERSION}')' r${LEMON_VERSION}
1.47 -
1.48 -rm -rf lemon-${LEMON_VERSION} lemon-doc-${LEMON_VERSION}
1.49 -
1.50 -echo '*****************************************************************'
1.51 -echo ' Release '${LEMON_VERSION}' has been created'
1.52 -echo '*****************************************************************'