Fix compiler warning due to missing function prototype.
[svn.git] / tools / dist / roll.sh
blob2b8bf222baeae2cb66f846c0b097e73409474d67
1 #!/bin/sh
2 set -e
4 VERSION=$1
5 REV=$2
6 EXTRA=$3
7 BRANCH=${VERSION%.*}.x
9 rs=http://svn.collab.net/repos/svn
11 if [ -n "`svn diff --summarize $rs/branches/$BRANCH/CHANGES $rs/trunk/CHANGES | grep ^M`" ]; then
12 echo "CHANGES not synced between trunk and branch, aborting!" >&2
13 exit 1
16 SVNRM_BIN="`pwd`/prefix/bin"
17 if [ ! -f "$SVNRM_BIN/autoconf" ] || [ ! -f "$SVNRM_BIN/libtoolize" ] \
18 || [ ! -f "$SVNRM_BIN/swig" ]; then
19 echo "You do not appear to have an appropriate prefix directory" >&2
20 exit 1
22 export PATH="$SVNRM_BIN:$PATH"
24 mkdir deploy
26 (cd unix-dependencies &&
27 `dirname $0`/dist.sh -v $VERSION -pr branches/$BRANCH -r $REV $EXTRA &&
28 mv subversion-* ../deploy/ &&
29 mv svn_version.h.dist ../deploy/) || exit $?
31 (cd win32-dependencies &&
32 `dirname $0`/dist.sh -v $VERSION -pr branches/$BRANCH -r $REV -zip $EXTRA &&
33 mv subversion-* ../deploy/ &&
34 rm svn_version.h.dist) || exit $?
36 (cd deploy &&
37 md5sum subversion-* svn_version.h.dist > md5sums &&
38 sha1sum subversion-* svn_version.h.dist > sha1sums &&
39 mkdir to-tigris &&
40 cd to-tigris &&
41 for i in ../subversion-*; do ln -s "$i"; done) || exit $?