diff -r 0722ea2b0907 -r 7a7a1f95cc24 scripts/release --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/release Wed Feb 01 11:33:16 2006 +0000 @@ -0,0 +1,74 @@ +#!/bin/bash + +# THE FIRST PARAMETER IS THE VERSION STRING + +set -e + +function make-dir () { + if [ ! -d $1 ]; then + mkdir $1 + fi +} + +VERSION=$1 +PKGNAME=lemon +VERSION_STRING=svn-head + +make-dir release-dir +cd release-dir + +echo +echo '**********************************************************************' +echo ' CHECK OUT' +echo '**********************************************************************' +echo + +rm -rf trunk +svn co https://hugo.cs.elte.hu/svn/hugo/trunk +svn lock trunk + +cd trunk + +echo +echo '**********************************************************************' +echo " CHANGE THE VERSION TO ${VERSION}" +echo '**********************************************************************' +echo + +rpl ${VERSION_STRING} $VERSION configure.ac + + +echo +echo '**********************************************************************' +echo ' CREATE TARBALL' +echo '**********************************************************************' +echo + +./bootstrap --amver-1.7 +./configure CXXFLAGS='-W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark +make doc +make distcheck + +cd .. + +echo +echo '**********************************************************************' +echo ' CREATE THE OTHER TAR FILES' +echo '**********************************************************************' +echo + +mv trunk/${PKGNAME}-${VERSION}.tar.gz . +tar xzf ${PKGNAME}-${VERSION}.tar.gz +mv ${PKGNAME}-${VERSION}/doc/html ./${PKGNAME}-doc-${VERSION} +tar czf ${PKGNAME}-doc-${VERSION}.tar.gz ${PKGNAME}-doc-${VERSION} +tar czf ${PKGNAME}-${VERSION}-nodoc.tar.gz ${PKGNAME}-${VERSION} +rm -rf ${PKGNAME}-${VERSION} ${PKGNAME}-doc-${VERSION} + +echo +echo '**********************************************************************' +echo ' CREATE SVN TAG' +echo '**********************************************************************' +echo + +svn cp trunk https://hugo.cs.elte.hu/svn/hugo/tags/${PKGNAME}-${VERSION} -m "Version ${VERSION} released." +svn unlock trunk