cc-wrapper: Use new bash uppercase subsitution syntax in setup hook

While this requires newer bash, stdenv's setup.sh now does across the
board anyways. This way is more concise.
This commit is contained in:
John Ericson 2017-07-15 20:29:49 -04:00
parent 093cc00cdd
commit 3739858571

View File

@ -52,9 +52,9 @@ for CMD in \
ar as nm objcopy ranlib strip strings size ld windres ar as nm objcopy ranlib strip strings size ld windres
do do
if if
PATH=$_PATH type -p @binPrefix@$CMD > /dev/null PATH=$_PATH type -p "@binPrefix@$CMD" > /dev/null
then then
export ${ENV_PREFIX}$(echo "$CMD" | tr "[:lower:]" "[:upper:]")=@binPrefix@${CMD}; export "${ENV_PREFIX}${CMD^^}=@binPrefix@${CMD}";
fi fi
done done