author | deba |
Thu, 15 Feb 2007 13:06:23 +0000 | |
changeset 2362 | eb37b9774ef6 |
parent 2241 | 37e0966e43b6 |
child 2567 | 62a9d46303d9 |
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@2279 | 56 |
#./bootstrap --amver=1.7 |
alpar@2279 | 57 |
autoreconf -vi |
alpar@1955 | 58 |
./configure CXXFLAGS='-g -O2 -W -Wall -Werror' --enable-gui --enable-demo --enable-benchmark |
alpar@1937 | 59 |
make doc |
alpar@1937 | 60 |
make distcheck |
alpar@1937 | 61 |
|
alpar@1937 | 62 |
cd .. |
alpar@1937 | 63 |
|
alpar@1937 | 64 |
echo |
alpar@1937 | 65 |
echo '**********************************************************************' |
alpar@1937 | 66 |
echo ' CREATE THE OTHER TAR FILES' |
alpar@1937 | 67 |
echo '**********************************************************************' |
alpar@1937 | 68 |
echo |
alpar@1937 | 69 |
|
alpar@1937 | 70 |
mv trunk/${PKGNAME}-${VERSION}.tar.gz . |
alpar@1937 | 71 |
tar xzf ${PKGNAME}-${VERSION}.tar.gz |
alpar@1937 | 72 |
mv ${PKGNAME}-${VERSION}/doc/html ./${PKGNAME}-doc-${VERSION} |
alpar@1937 | 73 |
tar czf ${PKGNAME}-doc-${VERSION}.tar.gz ${PKGNAME}-doc-${VERSION} |
alpar@1937 | 74 |
tar czf ${PKGNAME}-${VERSION}-nodoc.tar.gz ${PKGNAME}-${VERSION} |
alpar@1937 | 75 |
rm -rf ${PKGNAME}-${VERSION} ${PKGNAME}-doc-${VERSION} |
alpar@1937 | 76 |
|
alpar@1937 | 77 |
echo |
alpar@1937 | 78 |
echo '**********************************************************************' |
alpar@1937 | 79 |
echo ' CREATE SVN TAG' |
alpar@1937 | 80 |
echo '**********************************************************************' |
alpar@1937 | 81 |
echo |
alpar@1937 | 82 |
|
alpar@1937 | 83 |
svn cp trunk https://hugo.cs.elte.hu/svn/hugo/tags/${PKGNAME}-${VERSION} -m "Version ${VERSION} released." |
alpar@1958 | 84 |
# svn unlock https://hugo.cs.elte.hu/svn/hugo/trunk |