]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/arrow/ci/scripts/install_turbodbc.sh
import quincy 17.2.0
[ceph.git] / ceph / src / arrow / ci / scripts / install_turbodbc.sh
diff --git a/ceph/src/arrow/ci/scripts/install_turbodbc.sh b/ceph/src/arrow/ci/scripts/install_turbodbc.sh
new file mode 100755 (executable)
index 0000000..3e644a3
--- /dev/null
@@ -0,0 +1,43 @@
+#!/usr/bin/env bash
+#
+# 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.
+
+set -e
+
+if [ "$#" -ne 2 ]; then
+  echo "Usage: $0 <turbodbc version> <target directory>"
+  exit 1
+fi
+
+turbodbc=$1
+target=$2
+
+git clone --recurse-submodules https://github.com/blue-yonder/turbodbc "${target}"
+if [ "${turbodbc}" = "master" ]; then
+  git -C "${target}" checkout master;
+elif [ "${turbodbc}" = "latest" ]; then
+  git -C "${target}" checkout $(git describe --tags);
+else
+  git -C "${target}" checkout ${turbodbc};
+fi
+
+pushd ${target}
+wget -q https://github.com/pybind/pybind11/archive/v2.6.2.tar.gz
+tar xvf v2.6.2.tar.gz
+mv pybind11-2.6.2 pybind11
+popd