scripts/mk-release.sh
author Peter Kovacs <kpeter@inf.elte.hu>
Sun, 23 Aug 2009 11:09:22 +0200
changeset 735 853fcddcf282
parent 497 47b376a5a2a7
child 733 abf31e4af617
permissions -rwxr-xr-x
Doc improvements, fixes and unifications for graphs (#311)
alpar@497
     1
#!/bin/bash
alpar@497
     2
alpar@497
     3
set -e
alpar@497
     4
alpar@497
     5
if [ $# = 0 ]; then
alpar@497
     6
    echo "Usage: $0 release-id"
alpar@497
     7
    exit 1
alpar@497
     8
else
alpar@497
     9
    export LEMON_VERSION=$1
alpar@497
    10
fi
alpar@497
    11
alpar@497
    12
echo '*****************************************************************'
alpar@497
    13
echo ' Start making release tarballs for version '${LEMON_VERSION}
alpar@497
    14
echo '*****************************************************************'
alpar@497
    15
alpar@497
    16
autoreconf -vif
ladanyi@564
    17
./configure
alpar@497
    18
alpar@497
    19
make
alpar@497
    20
make html
alpar@497
    21
make distcheck
alpar@497
    22
tar xf lemon-${LEMON_VERSION}.tar.gz
alpar@497
    23
zip -r lemon-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
alpar@497
    24
mv lemon-${LEMON_VERSION}/doc/html lemon-doc-${LEMON_VERSION}
alpar@497
    25
tar czf lemon-doc-${LEMON_VERSION}.tar.gz lemon-doc-${LEMON_VERSION}
alpar@497
    26
zip -r lemon-doc-${LEMON_VERSION}.zip lemon-doc-${LEMON_VERSION}
alpar@497
    27
tar czf lemon-nodoc-${LEMON_VERSION}.tar.gz lemon-${LEMON_VERSION}
alpar@497
    28
zip -r lemon-nodoc-${LEMON_VERSION}.zip lemon-${LEMON_VERSION}
alpar@497
    29
hg tag -m 'LEMON '${LEMON_VERSION}' released ('$(hg par --template="{node|short}")' tagged as r'${LEMON_VERSION}')' r${LEMON_VERSION}
alpar@497
    30
alpar@497
    31
rm -rf lemon-${LEMON_VERSION} lemon-doc-${LEMON_VERSION}
alpar@497
    32
alpar@497
    33
echo '*****************************************************************'
alpar@497
    34
echo '  Release '${LEMON_VERSION}' has been created' 
alpar@497
    35
echo '*****************************************************************'