You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2010/05/17 21:41:51 UTC

svn commit: r945330 - /subversion/trunk/get-deps.sh

Author: hwright
Date: Mon May 17 19:41:51 2010
New Revision: 945330

URL: http://svn.apache.org/viewvc?rev=945330&view=rev
Log:
After we remove the deps tarballs from the distribution, it would still be
nice for consumers to have an easy way to grab the required dependencies,
without us having to ship them.  This script is that way.

* get-deps.sh:
  New.

Added:
    subversion/trunk/get-deps.sh   (with props)

Added: subversion/trunk/get-deps.sh
URL: http://svn.apache.org/viewvc/subversion/trunk/get-deps.sh?rev=945330&view=auto
==============================================================================
--- subversion/trunk/get-deps.sh (added)
+++ subversion/trunk/get-deps.sh Mon May 17 19:41:51 2010
@@ -0,0 +1,77 @@
+#!/bin/sh
+#
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+#
+#
+# get-deps.sh -- download the dependencies useful for building Subversion
+#
+
+APR=apr-1.3.8
+APR_UTIL=apr-util-1.3.9
+NEON=neon-0.29.0
+SERF=serf-0.3.0
+ZLIB=zlib-1.2.5
+SQLITE_VERSION=3.6.20
+SQLITE=sqlite-amalgamation-$SQLITE_VERSION
+
+HTTPD=httpd-2.2.14
+HTTPD_OOPS=
+APR_ICONV=apr-iconv-1.2.1
+APR_ICONV_OOPS=
+
+BASEDIR=`pwd`
+TEMPDIR=$BASEDIR/temp
+
+# Need this uncommented if any of the specific versions of the ASF tarballs to
+# be downloaded are no longer available on the general mirrors.
+APACHE_MIRROR=http://archive.apache.org/dist
+
+get_deps() {
+    mkdir -p $TEMPDIR
+    cd $TEMPDIR
+
+    wget -nc $APACHE_MIRROR/apr/$APR.tar.bz2
+    wget -nc $APACHE_MIRROR/apr/$APR_UTIL.tar.bz2
+    wget -nc http://webdav.org/neon/$NEON.tar.gz
+    wget -nc http://serf.googlecode.com/files/$SERF.tar.bz2
+    wget -nc http://www.zlib.net/$ZLIB.tar.bz2
+    wget -nc http://www.sqlite.org/$SQLITE.tar.gz
+
+    cd $BASEDIR
+    tar zxvf $TEMPDIR/$NEON.tar.gz
+    tar jxvf $TEMPDIR/$ZLIB.tar.bz2
+    tar jxvf $TEMPDIR/$SERF.tar.bz2
+    tar zxvf $TEMPDIR/$SQLITE.tar.gz
+
+    mv $NEON neon
+    mv $ZLIB zlib
+    mv $SERF serf
+    mv sqlite-$SQLITE_VERSION sqlite-amalgamation
+
+    tar jxvf $TEMPDIR/$APR.tar.bz2
+    tar jxvf $TEMPDIR/$APR_UTIL.tar.bz2
+    mv $APR apr
+    mv $APR_UTIL apr-util
+    cd $BASEDIR
+
+    rm -rf $TEMPDIR
+}
+
+get_deps

Propchange: subversion/trunk/get-deps.sh
------------------------------------------------------------------------------
    svn:executable = *