@@ -8,7 +8,7 @@ MIRROR=$1
88BOOST_VERSION=1_58_0
99PROTOBUF_VERSION=2.6.1
1010SNAPPY_VERSION=1.1.3
11- SOFA_PBRPC_VERSION=1.1.0
11+ SOFA_PBRPC_VERSION=1.1.1
1212ZOOKEEPER_VERSION=3.4.9
1313CMAKE_VERSION=3.2.1
1414GFLAGS_VERSION=2.1.2
@@ -20,47 +20,47 @@ INS_VERSION=0.14
2020NOSE_VERSION=1.3.7
2121
2222if [ $MIRROR == " china" ]; then
23- BOOST_URL=http://mirrors.163.com/gentoo/distfiles/boost_1_58_0 .tar.bz2
24- PROTOBUF_URL=http://mirrors.163.com/gentoo/distfiles/protobuf-2.6.1 .tar.bz2
25- SNAPPY_URL=http://mirrors.163.com/gentoo/distfiles/snappy-1.1.3 .tar.gz
26- SOFA_PBRPC_URL=https://github.com/baidu/sofa-pbrpc/archive/v1.1.0 .tar.gz
27- ZOOKEEPER_URL=http://mirrors.163.com/gentoo/distfiles/zookeeper-3.4.9 .tar.gz
28- CMAKE_URL=https://github.com/Kitware/CMake/archive/v3.2.1 .tar.gz
29- GFLAGS_URL=https://github.com/schuhschuh/gflags/archive/v2.1.2 .tar.gz
30- GLOG_URL=https://github.com/google/glog/archive/v0.3.3 .tar.gz
31- GTEST_URL=https://github.com/google/googletest/archive/release-1.8.0 .tar.gz
32- LIBUNWIND_URL=http://mirrors.163.com/gentoo/distfiles/libunwind-0.99 .tar.gz
33- GPERFTOOLS_URL=https://github.com/00k/gperftools/raw/master/gperftools-2.5 .tar.gz
34- INS_URL=https://github.com/baidu/ins/archive/0.14 .tar.gz
35- NOSE_URL=http://mirrors.163.com/gentoo/distfiles/nose-1.3.7 .tar.gz
23+ BOOST_URL=http://mirrors.163.com/gentoo/distfiles/boost_ ${BOOST_VERSION} .tar.bz2
24+ PROTOBUF_URL=http://mirrors.163.com/gentoo/distfiles/protobuf-${PROTOBUF_VERSION} .tar.bz2
25+ SNAPPY_URL=http://mirrors.163.com/gentoo/distfiles/snappy-${SNAPPY_VERSION} .tar.gz
26+ SOFA_PBRPC_URL=https://github.com/baidu/sofa-pbrpc/archive/v ${SOFA_PBRPC_VERSION} .tar.gz
27+ ZOOKEEPER_URL=http://mirrors.163.com/gentoo/distfiles/zookeeper-${ZOOKEEPER_VERSION} .tar.gz
28+ CMAKE_URL=https://github.com/Kitware/CMake/archive/v ${CMAKE_VERSION} .tar.gz
29+ GFLAGS_URL=https://github.com/schuhschuh/gflags/archive/v ${GFLAGS_VERSION} .tar.gz
30+ GLOG_URL=https://github.com/google/glog/archive/v ${GLOG_VERSION} .tar.gz
31+ GTEST_URL=https://github.com/google/googletest/archive/release-${GTEST_VERSION} .tar.gz
32+ LIBUNWIND_URL=http://mirrors.163.com/gentoo/distfiles/libunwind-${LIBUNWIND_VERSION} .tar.gz
33+ GPERFTOOLS_URL=https://github.com/00k/gperftools/raw/master/gperftools-${GPERFTOOLS_VERSION} .tar.gz
34+ INS_URL=https://github.com/baidu/ins/archive/${INS_VERSION} .tar.gz
35+ NOSE_URL=http://mirrors.163.com/gentoo/distfiles/nose-${NOSE_VERSION} .tar.gz
3636elif [ $MIRROR == " origin" ]; then
37- BOOST_URL=http://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0 .tar.bz2
38- PROTOBUF_URL=https://github.com/google/protobuf/releases/download/v2.6.1 /protobuf-2.6.1 .tar.bz2
39- SNAPPY_URL=https://github.com/google/snappy/releases/download/1.1.3 /snappy-1.1.3 .tar.gz
40- SOFA_PBRPC_URL=https://github.com/baidu/sofa-pbrpc/archive/v1.1.0 .tar.gz
41- ZOOKEEPER_URL=http://www-us.apache.org/dist/zookeeper/zookeeper-3.4.9 /zookeeper-3.4.9 .tar.gz
42- CMAKE_URL=https://github.com/Kitware/CMake/archive/v3.2.1 .tar.gz
43- GFLAGS_URL=https://github.com/schuhschuh/gflags/archive/v2.1.2 .tar.gz
44- GLOG_URL=https://github.com/google/glog/archive/v0.3.3 .tar.gz
45- GTEST_URL=https://github.com/google/googletest/archive/release-1.8.0 .tar.gz
46- LIBUNWIND_URL=http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99 .tar.gz
47- GPERFTOOLS_URL=https://github.com/gperftools/gperftools/releases/download/gperftools-2.5 /gperftools-2.5 .tar.gz
48- INS_URL=https://github.com/baidu/ins/archive/0.14 .tar.gz
49- NOSE_URL=http://mirrors.163.com/gentoo/distfiles/nose-1.3.7 .tar.gz
37+ BOOST_URL=http://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_ ${BOOST_VERSION} .tar.bz2
38+ PROTOBUF_URL=https://github.com/google/protobuf/releases/download/v ${PROTOBUF_VERSION} /protobuf-${PROTOBUF_VERSION} .tar.bz2
39+ SNAPPY_URL=https://github.com/google/snappy/releases/download/${SNAPPY_VERSION} /snappy-${SNAPPY_VERSION} .tar.gz
40+ SOFA_PBRPC_URL=https://github.com/baidu/sofa-pbrpc/archive/v ${SOFA_PBRPC_VERSION} .tar.gz
41+ ZOOKEEPER_URL=http://www-us.apache.org/dist/zookeeper/zookeeper-${ZOOKEEPER_VERSION} /zookeeper-${ZOOKEEPER_VERSION} .tar.gz
42+ CMAKE_URL=https://github.com/Kitware/CMake/archive/v ${CMAKE_VERSION} .tar.gz
43+ GFLAGS_URL=https://github.com/schuhschuh/gflags/archive/v ${GFLAGS_VERSION} .tar.gz
44+ GLOG_URL=https://github.com/google/glog/archive/v ${GLOG_VERSION} .tar.gz
45+ GTEST_URL=https://github.com/google/googletest/archive/release-${GTEST_VERSION} .tar.gz
46+ LIBUNWIND_URL=http://download.savannah.gnu.org/releases/libunwind/libunwind-${LIBUNWIND_VERSION} .tar.gz
47+ GPERFTOOLS_URL=https://github.com/gperftools/gperftools/releases/download/gperftools-${GPERFTOOLS_VERSION} /gperftools-${GPERFTOOLS_VERSION} .tar.gz
48+ INS_URL=https://github.com/baidu/ins/archive/${INS_VERSION} .tar.gz
49+ NOSE_URL=http://mirrors.163.com/gentoo/distfiles/nose-${NOSE_VERSION} .tar.gz
5050elif [ $MIRROR == " baidu" ]; then
51- BOOST_URL=http://gitlab.baidu.com/baidups/third/raw/master/boost_1_58_0 .tar.bz2
52- PROTOBUF_URL=http://gitlab.baidu.com/baidups/third/raw/master/protobuf-2.6.1 .tar.bz2
53- SNAPPY_URL=http://gitlab.baidu.com/baidups/third/raw/master/snappy-1.1.3 .tar.gz
54- SOFA_PBRPC_URL=http://gitlab.baidu.com/baidups/third/raw/master/sofa-pbrpc-1.1.0 .tar.gz
55- ZOOKEEPER_URL=http://gitlab.baidu.com/baidups/third/raw/master/zookeeper-3.4.9 .tar.gz
56- CMAKE_URL=http://gitlab.baidu.com/baidups/third/raw/master/CMake-3.2.1 .tar.gz
57- GFLAGS_URL=http://gitlab.baidu.com/baidups/third/raw/master/gflags-2.1.2 .tar.gz
58- GLOG_URL=http://gitlab.baidu.com/baidups/third/raw/master/glog-0.3.3 .tar.gz
59- GTEST_URL=http://gitlab.baidu.com/baidups/third/raw/master/googletest-release-1.8.0 .tar.gz
60- LIBUNWIND_URL=http://gitlab.baidu.com/baidups/third/raw/master/libunwind-0.99 .tar.gz
61- GPERFTOOLS_URL=http://gitlab.baidu.com/baidups/third/raw/master/gperftools-2.5 .tar.gz
62- INS_URL=http://gitlab.baidu.com/baidups/third/raw/master/ins-0.14 .tar.gz
63- NOSE_URL=http://gitlab.baidu.com/baidups/third/raw/master/nose-1.3.7 .tar.gz
51+ BOOST_URL=http://gitlab.baidu.com/baidups/third/raw/master/boost_ ${BOOST_VERSION} .tar.bz2
52+ PROTOBUF_URL=http://gitlab.baidu.com/baidups/third/raw/master/protobuf-${PROTOBUF_VERSION} .tar.bz2
53+ SNAPPY_URL=http://gitlab.baidu.com/baidups/third/raw/master/snappy-${SNAPPY_VERSION} .tar.gz
54+ SOFA_PBRPC_URL=http://gitlab.baidu.com/baidups/third/raw/master/sofa-pbrpc-${SOFA_PBRPC_VERSION} .tar.gz
55+ ZOOKEEPER_URL=http://gitlab.baidu.com/baidups/third/raw/master/zookeeper-${ZOOKEEPER_VERSION} .tar.gz
56+ CMAKE_URL=http://gitlab.baidu.com/baidups/third/raw/master/CMake-${CMAKE_VERSION} .tar.gz
57+ GFLAGS_URL=http://gitlab.baidu.com/baidups/third/raw/master/gflags-${GFLAGS_VERSION} .tar.gz
58+ GLOG_URL=http://gitlab.baidu.com/baidups/third/raw/master/glog-${GLOG_VERSION} .tar.gz
59+ GTEST_URL=http://gitlab.baidu.com/baidups/third/raw/master/googletest-release-${GTEST_VERSION} .tar.gz
60+ LIBUNWIND_URL=http://gitlab.baidu.com/baidups/third/raw/master/libunwind-${LIBUNWIND_VERSION} .tar.gz
61+ GPERFTOOLS_URL=http://gitlab.baidu.com/baidups/third/raw/master/gperftools-${GPERFTOOLS_VERSION} .tar.gz
62+ INS_URL=http://gitlab.baidu.com/baidups/third/raw/master/ins-${INS_VERSION} .tar.gz
63+ NOSE_URL=http://gitlab.baidu.com/baidups/third/raw/master/nose-${NOSE_VERSION} .tar.gz
6464else
6565 return 1
6666fi
0 commit comments