Fix usage on install.sh

This commit is contained in:
Zeh Rizzatti 2013-02-07 23:24:25 -03:00 committed by Strahinja Val Markovic
parent 2f3303e050
commit 41294f7a76

View File

@ -35,18 +35,25 @@ function linux_cmake_install {
exit 1
}
if [[ $# -gt 1 ]]; then
function usage {
echo "Usage: $0 [--clang-completer]"
exit 0
}
if [[ $# -gt 1 ]]; then
usage
fi
case "$1" in
--clang-completer)
cmake_args='-DUSE_CLANG_COMPLETER=ON'
;;
*)
'')
cmake_args=''
;;
*)
usage
;;
esac
if [[ ! -z `which cmake &> /dev/null` ]]; then