Deleted Added
full compact
get-deps.sh (253734) get-deps.sh (269833)
1#!/bin/sh
2#
3#
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

--- 19 unchanged lines hidden (view full) ---

28# features and functions. However, it may be desirable to use an even
29# more narrow set of features than POSIX, e.g. Solaris /bin/sh only has
30# a subset of the POSIX shell features. If in doubt, limit yourself to
31# features already used in the file. Reviewing the history of changes
32# may be useful as well.
33
34APR_VERSION=${APR_VERSION:-"1.4.6"}
35APU_VERSION=${APU_VERSION:-"1.5.1"}
1#!/bin/sh
2#
3#
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

--- 19 unchanged lines hidden (view full) ---

28# features and functions. However, it may be desirable to use an even
29# more narrow set of features than POSIX, e.g. Solaris /bin/sh only has
30# a subset of the POSIX shell features. If in doubt, limit yourself to
31# features already used in the file. Reviewing the history of changes
32# may be useful as well.
33
34APR_VERSION=${APR_VERSION:-"1.4.6"}
35APU_VERSION=${APU_VERSION:-"1.5.1"}
36SERF_VERSION=${SERF_VERSION:-"1.2.1"}
36SERF_VERSION=${SERF_VERSION:-"1.3.4"}
37ZLIB_VERSION=${ZLIB_VERSION:-"1.2.8"}
38SQLITE_VERSION=${SQLITE_VERSION:-"3.7.15.1"}
39GTEST_VERSION=${GTEST_VERSION:-"1.6.0"}
37ZLIB_VERSION=${ZLIB_VERSION:-"1.2.8"}
38SQLITE_VERSION=${SQLITE_VERSION:-"3.7.15.1"}
39GTEST_VERSION=${GTEST_VERSION:-"1.6.0"}
40HTTPD_VERSION=${HTTPD_VERSION:-"2.4.6"}
40HTTPD_VERSION=${HTTPD_VERSION:-"2.4.10"}
41APR_ICONV_VERSION=${APR_ICONV_VERSION:-"1.2.1"}
42
43APR=apr-${APR_VERSION}
44APR_UTIL=apr-util-${APU_VERSION}
45SERF=serf-${SERF_VERSION}
46ZLIB=zlib-${ZLIB_VERSION}
47SQLITE_VERSION_LIST=`echo $SQLITE_VERSION | sed -e 's/\./ /g'`
48SQLITE=sqlite-amalgamation-`printf %d%02d%02d%02d $SQLITE_VERSION_LIST`
49GTEST=gtest-${GTEST_VERSION}
50GTEST_URL=http://googletest.googlecode.com/files/
51
52HTTPD=httpd-${HTTPD_VERSION}
53APR_ICONV=apr-iconv-${APR_ICONV_VERSION}
54
55BASEDIR=`pwd`
56TEMPDIR=$BASEDIR/temp
57
58HTTP_FETCH=
59[ -z "$HTTP_FETCH" ] && type wget >/dev/null 2>&1 && HTTP_FETCH="wget -q -nc"
41APR_ICONV_VERSION=${APR_ICONV_VERSION:-"1.2.1"}
42
43APR=apr-${APR_VERSION}
44APR_UTIL=apr-util-${APU_VERSION}
45SERF=serf-${SERF_VERSION}
46ZLIB=zlib-${ZLIB_VERSION}
47SQLITE_VERSION_LIST=`echo $SQLITE_VERSION | sed -e 's/\./ /g'`
48SQLITE=sqlite-amalgamation-`printf %d%02d%02d%02d $SQLITE_VERSION_LIST`
49GTEST=gtest-${GTEST_VERSION}
50GTEST_URL=http://googletest.googlecode.com/files/
51
52HTTPD=httpd-${HTTPD_VERSION}
53APR_ICONV=apr-iconv-${APR_ICONV_VERSION}
54
55BASEDIR=`pwd`
56TEMPDIR=$BASEDIR/temp
57
58HTTP_FETCH=
59[ -z "$HTTP_FETCH" ] && type wget >/dev/null 2>&1 && HTTP_FETCH="wget -q -nc"
60[ -z "$HTTP_FETCH" ] && type curl >/dev/null 2>&1 && HTTP_FETCH="curl -sO"
60[ -z "$HTTP_FETCH" ] && type curl >/dev/null 2>&1 && HTTP_FETCH="curl -sOL"
61[ -z "$HTTP_FETCH" ] && type fetch >/dev/null 2>&1 && HTTP_FETCH="fetch -q"
62
63# Need this uncommented if any of the specific versions of the ASF tarballs to
64# be downloaded are no longer available on the general mirrors.
65APACHE_MIRROR=http://archive.apache.org/dist
66
67# helpers
68usage() {

--- 15 unchanged lines hidden (view full) ---

84 test -d $BASEDIR/apr || mv $APR apr
85 test -d $BASEDIR/apr-util || mv $APR_UTIL apr-util
86}
87
88get_serf() {
89 test -d $BASEDIR/serf && return
90
91 cd $TEMPDIR
61[ -z "$HTTP_FETCH" ] && type fetch >/dev/null 2>&1 && HTTP_FETCH="fetch -q"
62
63# Need this uncommented if any of the specific versions of the ASF tarballs to
64# be downloaded are no longer available on the general mirrors.
65APACHE_MIRROR=http://archive.apache.org/dist
66
67# helpers
68usage() {

--- 15 unchanged lines hidden (view full) ---

84 test -d $BASEDIR/apr || mv $APR apr
85 test -d $BASEDIR/apr-util || mv $APR_UTIL apr-util
86}
87
88get_serf() {
89 test -d $BASEDIR/serf && return
90
91 cd $TEMPDIR
92 $HTTP_FETCH http://serf.googlecode.com/files/$SERF.tar.bz2
92 $HTTP_FETCH http://serf.googlecode.com/svn/src_releases/$SERF.tar.bz2
93 cd $BASEDIR
94
95 bzip2 -dc $TEMPDIR/$SERF.tar.bz2 | tar -xf -
96
97 mv $SERF serf
98}
99
100get_zlib() {
101 test -d $BASEDIR/zlib && return
102
103 cd $TEMPDIR
93 cd $BASEDIR
94
95 bzip2 -dc $TEMPDIR/$SERF.tar.bz2 | tar -xf -
96
97 mv $SERF serf
98}
99
100get_zlib() {
101 test -d $BASEDIR/zlib && return
102
103 cd $TEMPDIR
104 $HTTP_FETCH http://www.zlib.net/$ZLIB.tar.gz
104 $HTTP_FETCH http://sourceforge.net/projects/libpng/files/zlib/$ZLIB_VERSION/$ZLIB.tar.gz
105 cd $BASEDIR
106
107 gzip -dc $TEMPDIR/$ZLIB.tar.gz | tar -xf -
108
109 mv $ZLIB zlib
110}
111
112get_sqlite() {

--- 61 unchanged lines hidden ---
105 cd $BASEDIR
106
107 gzip -dc $TEMPDIR/$ZLIB.tar.gz | tar -xf -
108
109 mv $ZLIB zlib
110}
111
112get_sqlite() {

--- 61 unchanged lines hidden ---