4
# Licensed to the Apache Software Foundation (ASF) under one
5
# or more contributor license agreements. See the NOTICE file
6
# distributed with this work for additional information
7
# regarding copyright ownership. The ASF licenses this file
8
# to you under the Apache License, Version 2.0 (the
9
# "License"); you may not use this file except in compliance
10
# with the License. You may obtain a copy of the License at
12
# http://www.apache.org/licenses/LICENSE-2.0
14
# Unless required by applicable law or agreed to in writing,
15
# software distributed under the License is distributed on an
16
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
# KIND, either express or implied. See the License for the
18
# specific language governing permissions and limitations
25
APR_UTIL=apr-util-1.4.1
29
SQLITE_VERSION=3071400
30
SQLITE=sqlite-amalgamation-$SQLITE_VERSION
34
APR_ICONV=apr-iconv-1.2.1
42
APACHE_MIRROR=http://archive.apache.org/dist
50
wget -qnc $APACHE_MIRROR/apr/$APR.tar.bz2
51
wget -qnc $APACHE_MIRROR/apr/$APR_UTIL.tar.bz2
52
if [ -n "$WIN32_APR_VIA_HTTPD" ]; then
53
wget -qnc $APACHE_MIRROR/httpd/$HTTPD-win32-src$HTTPD_OOPS.zip
55
wget -qnc $APACHE_MIRROR/apr/$APR-win32-src.zip
56
wget -qnc $APACHE_MIRROR/apr/$APR_UTIL-win32-src.zip
57
wget -qnc $APACHE_MIRROR/apr/$APR_ICONV-win32-src$APR_ICONV_OOPS.zip
59
wget -qnc http://webdav.org/neon/$NEON.tar.gz
60
wget -qnc http://serf.googlecode.com/files/$SERF.tar.bz2
61
wget -qnc http://www.zlib.net/$ZLIB.tar.bz2
62
wget -qnc http://www.sqlite.org/$SQLITE.zip
64
mkdir $BASEDIR/unix-dependencies
65
cd $BASEDIR/unix-dependencies
66
tar zxf $TEMPDIR/$NEON.tar.gz
67
tar jxf $TEMPDIR/$ZLIB.tar.bz2
68
tar jxf $TEMPDIR/$SERF.tar.bz2
69
unzip -q $TEMPDIR/$SQLITE.zip
73
mv $SQLITE sqlite-amalgamation
74
tar jxf $TEMPDIR/$APR.tar.bz2
75
tar jxf $TEMPDIR/$APR_UTIL.tar.bz2
80
mkdir $BASEDIR/win32-dependencies
81
cd $BASEDIR/win32-dependencies
82
tar zxf $TEMPDIR/$NEON.tar.gz
83
tar jxf $TEMPDIR/$ZLIB.tar.bz2
84
tar jxf $TEMPDIR/$SERF.tar.bz2
85
unzip -q $TEMPDIR/$SQLITE.zip
89
mv $SQLITE sqlite-amalgamation
90
if [ -n "$WIN32_APR_VIA_HTTPD" ]; then
91
unzip -q $TEMPDIR/$HTTPD-win32-src$HTTPD_OOPS.zip
92
for i in apr apr-util apr-iconv; do
97
unzip -q $TEMPDIR/$APR-win32-src.zip
98
unzip -q $TEMPDIR/$APR_UTIL-win32-src.zip
99
unzip -q $TEMPDIR/$APR_ICONV-win32-src$APR_ICONV_OOPS.zip
101
mv $APR_UTIL apr-util
102
mv $APR_ICONV apr-iconv
106
mv unix-dependencies subversion-$SVN_VERSION
107
tar jcf subversion-deps-$SVN_VERSION.tar.bz2 subversion-$SVN_VERSION
108
tar zcf subversion-deps-$SVN_VERSION.tar.gz subversion-$SVN_VERSION
109
rm -rf subversion-$SVN_VERSION
110
mv win32-dependencies subversion-$SVN_VERSION
111
zip -qr subversion-deps-$SVN_VERSION.zip subversion-$SVN_VERSION
112
rm -rf subversion-$SVN_VERSION
116
echo "Please provide a Subversion release number."
117
echo "Example: ./`basename $0` 1.6.19"