From da459e2a27e2c55881cbb6a2bc8afd7e2cb3bc0e Mon Sep 17 00:00:00 2001 From: Stephen Mather Date: Tue, 3 Feb 2015 09:27:52 -0500 Subject: [PATCH] test alternate install rules for 12.04 & 14.04 if [lsb_release -a | grep Release | awk '{print $2}' = "12.04" ]; ... --- install.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 34c7de05..eb6a2de3 100755 --- a/install.sh +++ b/install.sh @@ -107,6 +107,20 @@ echo " - updating" sudo apt-get update --assume-yes > "$TOOLS_LOG_PATH/apt-get_get.log" 2>&1 echo " - installing" + +if [lsb_release -a | grep Release | awk '{print $2}' = "12.04" ]; +then +sudo apt-get install --assume-yes --install-recommends \ + build-essential cmake g++ gcc gFortran perl git autoconf \ + curl wget \ + unzip \ + imagemagick jhead proj-bin libproj-dev\ + libjpeg-dev libboost1.48-all-dev libgsl0-dev libx11-dev libxext-dev liblapack-dev \ + libeigen3-dev libflann-dev libvtk5-dev libqhull-dev libusb-1.0-0-dev\ + libzip-dev \ + libcv-dev libcvaux-dev libopencv-dev \ + > "$TOOLS_LOG_PATH/apt-get_install.log" 2>&1 +else sudo apt-get install --assume-yes --install-recommends \ build-essential cmake g++ gcc gFortran perl git autoconf \ curl wget \ @@ -117,7 +131,7 @@ sudo apt-get install --assume-yes --install-recommends \ libzip-dev \ libcv-dev libcvaux-dev libopencv-dev \ > "$TOOLS_LOG_PATH/apt-get_install.log" 2>&1 - +fi echo " < done - `date`"