Created
March 19, 2019 14:26
-
-
Save adujardin/6b37d2b9a3a0d64254b57e7d199cc806 to your computer and use it in GitHub Desktop.
Install a custom version of cmake on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
version="3.14.0" | |
linux_name="cmake-${version}-Linux-x86_64" | |
url="https://github.com/Kitware/CMake/releases/download/v${version}/${linux_name}.tar.gz" | |
wget ${url} -O /tmp/cmake.tar.gz -q --show-progress | |
cd /tmp/ | |
tar -xf cmake.tar.gz | |
sudo cp -r "${linux_name}/bin" /usr/ | |
sudo cp -r "${linux_name}/share" /usr/ | |
sudo cp -r "${linux_name}/doc" /usr/share/ | |
sudo cp -r "${linux_name}/man" /usr/share/ | |
rm /tmp/cmake.tar.gz "/tmp/${linux_name}" -rf | |
echo "cmake version ${version} installed !" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment