Tools: added cmake to ububtu prereqs install

this fixes waf build for ubuntu 14.04 LTS
This commit is contained in:
Andrew Tridgell 2016-10-20 16:29:51 +11:00
parent 1171b33419
commit bd0d37e2fd
1 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,14 @@ else
APT_GET="sudo apt-get"
fi
# possibly grab a newer cmake for older ubuntu releases
read -r UBUNTU_CODENAME <<<$(lsb_release -c -s)
if [ "$UBUNTU_CODENAME" = "precise" ]; then
sudo add-apt-repository ppa:george-edison55/precise-backports -y
elif [ "$UBUNTU_CODENAME" = "trusty" ]; then
sudo add-apt-repository ppa:george-edison55/cmake-3.x -y
fi
sudo usermod -a -G dialout $USER
$APT_GET remove modemmanager