3 # THE FIRST PARAMETER IS THE VERSION STRING
7 echo 'Usage: release version-string'
9 echo "WARNING: This script modifies the repository, so don't use it unless"
10 echo ' you really want to make a release'
16 function make-dir () {
24 VERSION_STRING='svnhead'
30 echo '**********************************************************************'
32 echo '**********************************************************************'
36 svn co https://hugo.cs.elte.hu/svn/hugo/trunk
37 # svn lock https://hugo.cs.elte.hu/svn/hugo/trunk
42 echo '**********************************************************************'
43 echo " CHANGE THE VERSION TO ${VERSION}"
44 echo '**********************************************************************'
47 sed "s/${VERSION_STRING}/${VERSION}/" <configure.ac >configure.ac.tmp
48 mv configure.ac.tmp configure.ac
51 echo '**********************************************************************'
52 echo ' CREATE TARBALL'
53 echo '**********************************************************************'
56 ./bootstrap --amver=1.7
57 ./configure CXXFLAGS='-g -O2 -W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark
64 echo '**********************************************************************'
65 echo ' CREATE THE OTHER TAR FILES'
66 echo '**********************************************************************'
69 mv trunk/${PKGNAME}-${VERSION}.tar.gz .
70 tar xzf ${PKGNAME}-${VERSION}.tar.gz
71 mv ${PKGNAME}-${VERSION}/doc/html ./${PKGNAME}-doc-${VERSION}
72 tar czf ${PKGNAME}-doc-${VERSION}.tar.gz ${PKGNAME}-doc-${VERSION}
73 tar czf ${PKGNAME}-${VERSION}-nodoc.tar.gz ${PKGNAME}-${VERSION}
74 rm -rf ${PKGNAME}-${VERSION} ${PKGNAME}-doc-${VERSION}
77 echo '**********************************************************************'
78 echo ' CREATE SVN TAG'
79 echo '**********************************************************************'
82 svn cp trunk https://hugo.cs.elte.hu/svn/hugo/tags/${PKGNAME}-${VERSION} -m "Version ${VERSION} released."
83 # svn unlock https://hugo.cs.elte.hu/svn/hugo/trunk