From dbc2905077e73566157d32b6a62dc878abb017b7 Mon Sep 17 00:00:00 2001
From: Johan Smith Agudelo Rodriguez <audoban@openmailbox.org>
Date: Tue, 3 Jan 2017 18:32:32 -0500
Subject: [PATCH] we can pass a build type to install.sh

---
 install.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/install.sh b/install.sh
index 0a3a0f66d..41f9ad7b3 100755
--- a/install.sh
+++ b/install.sh
@@ -4,11 +4,14 @@
 #This script was written and tested on openSuSe Leap 42.1
 set -e
 
+build_type=$1
+build_type=${build_type:="Release"}
+
 if ! [ -a build ] ; then
     mkdir build
 fi
 
 cd build
-cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE ..
+cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=$build_type ..
 make
 sudo make install