author | deba |
Mon, 30 Oct 2006 17:22:14 +0000 | |
changeset 2276 | 1a8a66b6c6ce |
parent 2124 | c3b9c574fa3e |
child 2279 | 2c3fee01d3ed |
permissions | -rwxr-xr-x |
alpar@1937 | 1 |
#!/bin/bash |
alpar@1937 | 2 |
|
alpar@1937 | 3 |
# THE FIRST PARAMETER IS THE VERSION STRING |
alpar@1937 | 4 |
|
alpar@2241 | 5 |
if [ $# != 1 ]; then |
alpar@2241 | 6 |
echo |
alpar@2241 | 7 |
echo 'Usage: release version-string' |
alpar@2241 | 8 |
echo |
alpar@2241 | 9 |
echo "WARNING: This script modifies the repository, so don't use it unless" |
alpar@2241 | 10 |
echo ' you really want to make a release' |
alpar@2241 | 11 |
exit 1 |
alpar@2241 | 12 |
fi |
alpar@2241 | 13 |
|
alpar@1937 | 14 |
set -e |
alpar@1937 | 15 |
|
alpar@1937 | 16 |
function make-dir () { |
alpar@1937 | 17 |
if [ ! -d $1 ]; then |
alpar@1937 | 18 |
mkdir $1 |
alpar@1937 | 19 |
fi |
alpar@1937 | 20 |
} |
alpar@1937 | 21 |
|
alpar@1937 | 22 |
VERSION=$1 |
alpar@1954 | 23 |
PKGNAME='lemon' |
alpar@2241 | 24 |
VERSION_STRING='svnhead' |
alpar@1937 | 25 |
|
alpar@1937 | 26 |
make-dir release-dir |
alpar@1937 | 27 |
cd release-dir |
alpar@1937 | 28 |
|
alpar@1937 | 29 |
echo |
alpar@1937 | 30 |
echo '**********************************************************************' |
alpar@1937 | 31 |
echo ' CHECK OUT' |
alpar@1937 | 32 |
echo '**********************************************************************' |
alpar@1937 | 33 |
echo |
alpar@1937 | 34 |
|
alpar@1937 | 35 |
rm -rf trunk |
alpar@1937 | 36 |
svn co https://hugo.cs.elte.hu/svn/hugo/trunk |
alpar@1958 | 37 |
# svn lock https://hugo.cs.elte.hu/svn/hugo/trunk |
alpar@1937 | 38 |
|
alpar@1937 | 39 |
cd trunk |
alpar@1937 | 40 |
|
alpar@1937 | 41 |
echo |
alpar@1937 | 42 |
echo '**********************************************************************' |
alpar@1937 | 43 |
echo " CHANGE THE VERSION TO ${VERSION}" |
alpar@1937 | 44 |
echo '**********************************************************************' |
alpar@1937 | 45 |
echo |
alpar@1937 | 46 |
|
alpar@2124 | 47 |
sed "s/${VERSION_STRING}/${VERSION}/" <configure.ac >configure.ac.tmp |
alpar@2124 | 48 |
mv configure.ac.tmp configure.ac |
alpar@1937 | 49 |
|
alpar@1937 | 50 |
echo |
alpar@1937 | 51 |
echo '**********************************************************************' |
alpar@1937 | 52 |
echo ' CREATE TARBALL' |
alpar@1937 | 53 |
echo '**********************************************************************' |
alpar@1937 | 54 |
echo |
alpar@1937 | 55 |
|
alpar@1958 | 56 |
./bootstrap --amver=1.7 |
alpar@1955 | 57 |
./configure CXXFLAGS='-g -O2 -W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark |
alpar@1937 | 58 |
make doc |
alpar@1937 | 59 |
make distcheck |
alpar@1937 | 60 |
|
alpar@1937 | 61 |
cd .. |
alpar@1937 | 62 |
|
alpar@1937 | 63 |
echo |
alpar@1937 | 64 |
echo '**********************************************************************' |
alpar@1937 | 65 |
echo ' CREATE THE OTHER TAR FILES' |
alpar@1937 | 66 |
echo '**********************************************************************' |
alpar@1937 | 67 |
echo |
alpar@1937 | 68 |
|
alpar@1937 | 69 |
mv trunk/${PKGNAME}-${VERSION}.tar.gz . |
alpar@1937 | 70 |
tar xzf ${PKGNAME}-${VERSION}.tar.gz |
alpar@1937 | 71 |
mv ${PKGNAME}-${VERSION}/doc/html ./${PKGNAME}-doc-${VERSION} |
alpar@1937 | 72 |
tar czf ${PKGNAME}-doc-${VERSION}.tar.gz ${PKGNAME}-doc-${VERSION} |
alpar@1937 | 73 |
tar czf ${PKGNAME}-${VERSION}-nodoc.tar.gz ${PKGNAME}-${VERSION} |
alpar@1937 | 74 |
rm -rf ${PKGNAME}-${VERSION} ${PKGNAME}-doc-${VERSION} |
alpar@1937 | 75 |
|
alpar@1937 | 76 |
echo |
alpar@1937 | 77 |
echo '**********************************************************************' |
alpar@1937 | 78 |
echo ' CREATE SVN TAG' |
alpar@1937 | 79 |
echo '**********************************************************************' |
alpar@1937 | 80 |
echo |
alpar@1937 | 81 |
|
alpar@1937 | 82 |
svn cp trunk https://hugo.cs.elte.hu/svn/hugo/tags/${PKGNAME}-${VERSION} -m "Version ${VERSION} released." |
alpar@1958 | 83 |
# svn unlock https://hugo.cs.elte.hu/svn/hugo/trunk |