mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
STYLE: provide 'die' as alternative to 'usage'
- make option parsing more consistent
This commit is contained in:
10
makeLLVM
10
makeLLVM
@ -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
|
||||
|
||||
Reference in New Issue
Block a user