Merge pull request #1536 from hcvcastro/pr/master/00

fix add configure parameters to retroarch
This commit is contained in:
Autechre 2021-05-11 17:16:43 +02:00 committed by GitHub
commit 5478fa78cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,15 +24,16 @@ ENTRY_ID=""
# ----- read variables from recipe config -----
while read line; do
[ -z "${line}" ] && continue
KEY="${line% *}"
KEY="${line%% *}"
VALUE="${line#* }"
rm -f -- "$TMPDIR/vars"
if [ "${KEY}" = "PATH" ]; then
export PATH=${VALUE}:${ORIGPATH}
echo PATH=${VALUE}:${ORIGPATH} >> $TMPDIR/vars
else
export ${KEY}=${VALUE}
echo ${KEY}=${VALUE} >> $TMPDIR/vars
export ${KEY}="${VALUE}"
echo ${KEY}="${VALUE}" >> $TMPDIR/vars
fi
echo "Setting: ${KEY} ${VALUE}"
done < $RECIPE.conf