4 # * Copyright The Apache Software Foundation
6 # * Licensed to the Apache Software Foundation (ASF) under one
7 # * or more contributor license agreements. See the NOTICE file
8 # * distributed with this work for additional information
9 # * regarding copyright ownership. The ASF licenses this file
10 # * to you under the Apache License, Version 2.0 (the
11 # * "License"); you may not use this file except in compliance
12 # * with the License. You may obtain a copy of the License at
14 # * http://www.apache.org/licenses/LICENSE-2.0
16 # * Unless required by applicable law or agreed to in writing, software
17 # * distributed under the License is distributed on an "AS IS" BASIS,
18 # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # * See the License for the specific language governing permissions and
20 # * limitations under the License.
23 SOURCE
="${BASH_SOURCE[0]}"
24 while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
25 DIR
="$( cd -P "$
( dirname "$SOURCE" )" && pwd )"
26 SOURCE
="$(readlink "$SOURCE")"
27 [[ $SOURCE != /* ]] && SOURCE
="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to
28 # resolve it relative to the path where
29 # the symlink file was located
31 DIR
="$( cd -P "$
( dirname "$SOURCE" )" && pwd )"
32 HBASE_DIR
="${DIR}/../"
33 HBASE_TP_DIR
="${HBASE_DIR}/thirdparty/"
35 HBASE_PREFIX
=$HBASE_TP_DIR/installed
37 HBASE_GTEST_VERSION
=1.7.0
38 HBASE_GTEST_DIR
=$HBASE_TP_DIR/gtest-
$HBASE_GTEST_VERSION
40 HBASE_PROTOBUF_VERSION
=2.5.0
41 HBASE_PROTOBUF_DIR
=$HBASE_TP_DIR/protobuf-
$HBASE_PROTOBUF_VERSION
43 HBASE_LIBEV_VERSION
=4.15
44 HBASE_LIBEV_DIR
=$HBASE_TP_DIR/libev-
$HBASE_LIBEV_VERSION
46 # use the compiled tools
47 export PATH
=$HBASE_PREFIX/bin
:$PATH