Reorganize the output to "svnserve --help".
[svn.git] / tools / dist / roll.sh
blob7159de8d0d774e64d5c690fea55676ae72f1a585
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 $rs/branches/$BRANCH/CHANGES $rs/trunk/CHANGES`" ]; 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 $?