#!/bin/bash

set -e

CMAKE_VERSION=cmake-2.8.11.2
CMAKE_TARBALL=$CMAKE_VERSION.tar.gz
wget http://www.cmake.org/files/v2.8/$CMAKE_TARBALL
tar xf $CMAKE_TARBALL
cd $CMAKE_VERSION
./bootstrap 
make
sudo make install
cd ..
rm -rf $CMAKE_VERSION
rm -f $CMAKE_TARBALL
 
