1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/scripts/release Wed Feb 01 11:33:16 2006 +0000
1.3 @@ -0,0 +1,74 @@
1.4 +#!/bin/bash
1.5 +
1.6 +# THE FIRST PARAMETER IS THE VERSION STRING
1.7 +
1.8 +set -e
1.9 +
1.10 +function make-dir () {
1.11 + if [ ! -d $1 ]; then
1.12 + mkdir $1
1.13 + fi
1.14 +}
1.15 +
1.16 +VERSION=$1
1.17 +PKGNAME=lemon
1.18 +VERSION_STRING=svn-head
1.19 +
1.20 +make-dir release-dir
1.21 +cd release-dir
1.22 +
1.23 +echo
1.24 +echo '**********************************************************************'
1.25 +echo ' CHECK OUT'
1.26 +echo '**********************************************************************'
1.27 +echo
1.28 +
1.29 +rm -rf trunk
1.30 +svn co https://hugo.cs.elte.hu/svn/hugo/trunk
1.31 +svn lock trunk
1.32 +
1.33 +cd trunk
1.34 +
1.35 +echo
1.36 +echo '**********************************************************************'
1.37 +echo " CHANGE THE VERSION TO ${VERSION}"
1.38 +echo '**********************************************************************'
1.39 +echo
1.40 +
1.41 +rpl ${VERSION_STRING} $VERSION configure.ac
1.42 +
1.43 +
1.44 +echo
1.45 +echo '**********************************************************************'
1.46 +echo ' CREATE TARBALL'
1.47 +echo '**********************************************************************'
1.48 +echo
1.49 +
1.50 +./bootstrap --amver-1.7
1.51 +./configure CXXFLAGS='-W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark
1.52 +make doc
1.53 +make distcheck
1.54 +
1.55 +cd ..
1.56 +
1.57 +echo
1.58 +echo '**********************************************************************'
1.59 +echo ' CREATE THE OTHER TAR FILES'
1.60 +echo '**********************************************************************'
1.61 +echo
1.62 +
1.63 +mv trunk/${PKGNAME}-${VERSION}.tar.gz .
1.64 +tar xzf ${PKGNAME}-${VERSION}.tar.gz
1.65 +mv ${PKGNAME}-${VERSION}/doc/html ./${PKGNAME}-doc-${VERSION}
1.66 +tar czf ${PKGNAME}-doc-${VERSION}.tar.gz ${PKGNAME}-doc-${VERSION}
1.67 +tar czf ${PKGNAME}-${VERSION}-nodoc.tar.gz ${PKGNAME}-${VERSION}
1.68 +rm -rf ${PKGNAME}-${VERSION} ${PKGNAME}-doc-${VERSION}
1.69 +
1.70 +echo
1.71 +echo '**********************************************************************'
1.72 +echo ' CREATE SVN TAG'
1.73 +echo '**********************************************************************'
1.74 +echo
1.75 +
1.76 +svn cp trunk https://hugo.cs.elte.hu/svn/hugo/tags/${PKGNAME}-${VERSION} -m "Version ${VERSION} released."
1.77 +svn unlock trunk