diff options
author | Yuqian Yang <crupest@outlook.com> | 2025-06-29 15:07:57 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@outlook.com> | 2025-06-29 15:08:47 +0800 |
commit | 66a0836ba12ed12c29353ae75134654c6f2013cc (patch) | |
tree | aeca0ebfca99f50f305f8948f512abf1760f8540 /store/debian-dev/setup/cmake.bash | |
parent | 43d6c1f08a38ae4e8584e3915f0cbdbc3cfd05e9 (diff) | |
download | crupest-66a0836ba12ed12c29353ae75134654c6f2013cc.tar.gz crupest-66a0836ba12ed12c29353ae75134654c6f2013cc.tar.bz2 crupest-66a0836ba12ed12c29353ae75134654c6f2013cc.zip |
debian-dev: refactor all.
Diffstat (limited to 'store/debian-dev/setup/cmake.bash')
-rwxr-xr-x | store/debian-dev/setup/cmake.bash | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/store/debian-dev/setup/cmake.bash b/store/debian-dev/setup/cmake.bash new file mode 100755 index 0000000..dd7307e --- /dev/null +++ b/store/debian-dev/setup/cmake.bash @@ -0,0 +1,9 @@ +#! /usr/bin/env bash + +set -e -o pipefail + +CMAKE_VERSION=$(curl -s https://api.github.com/repos/Kitware/CMake/releases/latest | \ + grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') + +curl -fsSL "https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-linux-x86_64.sh" | \ + sh -s -- --skip-license --prefix=/usr |