author | athos |
Mon, 17 Jul 2006 09:31:41 +0000 | |
changeset 2147 | 63d293ff1bef |
parent 1958 | 5be9c1ca0252 |
child 2241 | 37e0966e43b6 |
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@1937 | 5 |
set -e |
alpar@1937 | 6 |
|
alpar@1937 | 7 |
function make-dir () { |
alpar@1937 | 8 |
if [ ! -d $1 ]; then |
alpar@1937 | 9 |
mkdir $1 |
alpar@1937 | 10 |
fi |
alpar@1937 | 11 |
} |
alpar@1937 | 12 |
|
alpar@1937 | 13 |
VERSION=$1 |
alpar@1954 | 14 |
PKGNAME='lemon' |
alpar@1954 | 15 |
VERSION_STRING='svn-head' |
alpar@1937 | 16 |
|
alpar@1937 | 17 |
make-dir release-dir |
alpar@1937 | 18 |
cd release-dir |
alpar@1937 | 19 |
|
alpar@1937 | 20 |
echo |
alpar@1937 | 21 |
echo '**********************************************************************' |
alpar@1937 | 22 |
echo ' CHECK OUT' |
alpar@1937 | 23 |
echo '**********************************************************************' |
alpar@1937 | 24 |
echo |
alpar@1937 | 25 |
|
alpar@1937 | 26 |
rm -rf trunk |
alpar@1937 | 27 |
svn co https://hugo.cs.elte.hu/svn/hugo/trunk |
alpar@1958 | 28 |
# svn lock https://hugo.cs.elte.hu/svn/hugo/trunk |
alpar@1937 | 29 |
|
alpar@1937 | 30 |
cd trunk |
alpar@1937 | 31 |
|
alpar@1937 | 32 |
echo |
alpar@1937 | 33 |
echo '**********************************************************************' |
alpar@1937 | 34 |
echo " CHANGE THE VERSION TO ${VERSION}" |
alpar@1937 | 35 |
echo '**********************************************************************' |
alpar@1937 | 36 |
echo |
alpar@1937 | 37 |
|
alpar@2124 | 38 |
sed "s/${VERSION_STRING}/${VERSION}/" <configure.ac >configure.ac.tmp |
alpar@2124 | 39 |
mv configure.ac.tmp configure.ac |
alpar@1937 | 40 |
|
alpar@1937 | 41 |
echo |
alpar@1937 | 42 |
echo '**********************************************************************' |
alpar@1937 | 43 |
echo ' CREATE TARBALL' |
alpar@1937 | 44 |
echo '**********************************************************************' |
alpar@1937 | 45 |
echo |
alpar@1937 | 46 |
|
alpar@1958 | 47 |
./bootstrap --amver=1.7 |
alpar@1955 | 48 |
./configure CXXFLAGS='-g -O2 -W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark |
alpar@1937 | 49 |
make doc |
alpar@1937 | 50 |
make distcheck |
alpar@1937 | 51 |
|
alpar@1937 | 52 |
cd .. |
alpar@1937 | 53 |
|
alpar@1937 | 54 |
echo |
alpar@1937 | 55 |
echo '**********************************************************************' |
alpar@1937 | 56 |
echo ' CREATE THE OTHER TAR FILES' |
alpar@1937 | 57 |
echo '**********************************************************************' |
alpar@1937 | 58 |
echo |
alpar@1937 | 59 |
|
alpar@1937 | 60 |
mv trunk/${PKGNAME}-${VERSION}.tar.gz . |
alpar@1937 | 61 |
tar xzf ${PKGNAME}-${VERSION}.tar.gz |
alpar@1937 | 62 |
mv ${PKGNAME}-${VERSION}/doc/html ./${PKGNAME}-doc-${VERSION} |
alpar@1937 | 63 |
tar czf ${PKGNAME}-doc-${VERSION}.tar.gz ${PKGNAME}-doc-${VERSION} |
alpar@1937 | 64 |
tar czf ${PKGNAME}-${VERSION}-nodoc.tar.gz ${PKGNAME}-${VERSION} |
alpar@1937 | 65 |
rm -rf ${PKGNAME}-${VERSION} ${PKGNAME}-doc-${VERSION} |
alpar@1937 | 66 |
|
alpar@1937 | 67 |
echo |
alpar@1937 | 68 |
echo '**********************************************************************' |
alpar@1937 | 69 |
echo ' CREATE SVN TAG' |
alpar@1937 | 70 |
echo '**********************************************************************' |
alpar@1937 | 71 |
echo |
alpar@1937 | 72 |
|
alpar@1937 | 73 |
svn cp trunk https://hugo.cs.elte.hu/svn/hugo/tags/${PKGNAME}-${VERSION} -m "Version ${VERSION} released." |
alpar@1958 | 74 |
# svn unlock https://hugo.cs.elte.hu/svn/hugo/trunk |