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