aboutsummaryrefslogtreecommitdiff
path: root/services/docker/debian-dev/bootstrap/extra/setup-cmake.bash
diff options
context:
space:
mode:
Diffstat (limited to 'services/docker/debian-dev/bootstrap/extra/setup-cmake.bash')
-rwxr-xr-xservices/docker/debian-dev/bootstrap/extra/setup-cmake.bash9
1 files changed, 9 insertions, 0 deletions
diff --git a/services/docker/debian-dev/bootstrap/extra/setup-cmake.bash b/services/docker/debian-dev/bootstrap/extra/setup-cmake.bash
new file mode 100755
index 0000000..76c1ae4
--- /dev/null
+++ b/services/docker/debian-dev/bootstrap/extra/setup-cmake.bash
@@ -0,0 +1,9 @@
+#! /usr/bin/env bash
+
+set -e
+
+CMAKE_VERSION=$(curl -s https://api.github.com/repos/Kitware/CMake/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')
+wget -O cmake-installer.sh https://github.com/Kitware/CMake/releases/download/v"$CMAKE_VERSION"/cmake-"$CMAKE_VERSION"-linux-x86_64.sh
+chmod +x cmake-installer.sh
+./cmake-installer.sh --skip-license --prefix=/usr
+rm cmake-installer.sh