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:
parent
093cc00cdd
commit
3739858571
|
@ -52,9 +52,9 @@ for CMD in \
|
|||
ar as nm objcopy ranlib strip strings size ld windres
|
||||
do
|
||||
if
|
||||
PATH=$_PATH type -p @binPrefix@$CMD > /dev/null
|
||||
PATH=$_PATH type -p "@binPrefix@$CMD" > /dev/null
|
||||
then
|
||||
export ${ENV_PREFIX}$(echo "$CMD" | tr "[:lower:]" "[:upper:]")=@binPrefix@${CMD};
|
||||
export "${ENV_PREFIX}${CMD^^}=@binPrefix@${CMD}";
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in a new issue