STYLE: provide 'die' as alternative to 'usage'

- make option parsing more consistent
This commit is contained in:
mark
2016-06-16 19:50:38 +02:00
parent b66ec91d01
commit 0b1c761075
11 changed files with 69 additions and 122 deletions

View File

@ -86,19 +86,15 @@ do
;;
llvm-[0-9]* | llvm-svn*)
llvmPACKAGE="${1%%/}"
shift
;;
*)
usage "unknown option/argument: '$*'"
die "unknown option/argument: '$1'"
;;
esac
shift
done
if [ -z "$llvmPACKAGE" ]
then
die "The llvm-VERSION was not specified"
exit 1
fi
[ -n "$llvmPACKAGE" ] || die "The llvm-VERSION was not specified"
#------------------------------------------------------------------------------
# build/install without compiler name