scripts/mk-release.sh
author Alpar Juttner <alpar@cs.elte.hu>
Wed, 25 Aug 2010 21:34:58 +0200
changeset 742 16d466589b54
parent 553 47b376a5a2a7
permissions -rwxr-xr-x
Backport the CMAKE related changesets from the main branch

[e20fecd1945f] Add check target for CMake (#388)
[e74b5db4f2c6] Put the output of chg-len.py in the version string (#389)
[7d166b8b8018] Safer call of ./scripts/chg-len.py on Windows (#389)
[659ba4805a48] Make CMAKE config more consistent with configure.ac (#390)
[63e4468c680e] Add 'Maintainer' CMAKE build type (#388, #390)
[a725503acfe9] Allow CPACK configuration on all platforms
[10242c611190] Create and install lemon.pc (#393)
[48e29534cf03] The deafult target doesn't build lp_test and mip_test (#388)
[0fbbdd578c06] Full path for DoxygenLayout.xml in Doxyfile.in (#395)
[481496e6d71f] SOURCE_BROWSER Doxygen switch is configurable from CMAKE (#395)
[09282720100b] update-external-tags CMAKE target (#395)
alpar@553
     1
#!/bin/bash
alpar@553
     2
alpar@553
     3
set -e
alpar@553
     4
alpar@553
     5
if [ $# = 0 ]; then
alpar@553
     6
    echo "Usage: $0 release-id"
alpar@553
     7
    exit 1
alpar@553
     8
else
alpar@553
     9
    export LEMON_VERSION=$1
alpar@553
    10
fi
alpar@553
    11
alpar@553
    12
echo '*****************************************************************'
alpar@553
    13
echo ' Start making release tarballs for version '${LEMON_VERSION}
alpar@553
    14
echo '*****************************************************************'
alpar@553
    15
alpar@553
    16
autoreconf -vif
ladanyi@556
    17
./configure
alpar@553
    18
alpar@553
    19
make
alpar@553
    20
make html
alpar@553
    21
make distcheck
alpar@553
    22
tar xf lemon-${LEMON_VERSION}.tar.gz
alpar@553
    23
zip -r lemon-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
alpar@553
    24
mv lemon-${LEMON_VERSION}/doc/html lemon-doc-${LEMON_VERSION}
alpar@553
    25
tar czf lemon-doc-${LEMON_VERSION}.tar.gz lemon-doc-${LEMON_VERSION}
alpar@553
    26
zip -r lemon-doc-${LEMON_VERSION}.zip lemon-doc-${LEMON_VERSION}
alpar@553
    27
tar czf lemon-nodoc-${LEMON_VERSION}.tar.gz lemon-${LEMON_VERSION}
alpar@553
    28
zip -r lemon-nodoc-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
alpar@553
    29
hg tag -m 'LEMON '${LEMON_VERSION}' released ('$(hg par --template="{node|short}")' tagged as r'${LEMON_VERSION}')' r${LEMON_VERSION}
alpar@553
    30
alpar@553
    31
rm -rf lemon-${LEMON_VERSION} lemon-doc-${LEMON_VERSION}
alpar@553
    32
alpar@553
    33
echo '*****************************************************************'
alpar@553
    34
echo '  Release '${LEMON_VERSION}' has been created' 
alpar@553
    35
echo '*****************************************************************'