summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-05 20:38:29 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-05 20:55:26 +0200
commit94d553b2fbff217861f150ba0583ea1dca35b30e (patch)
treebcc1b556790127c7abe4008679ef30fbd60e2bdf /bootstrap
parent99ff0ab0b2f4f6b8718b4dfa1bfc2c598ac25c4c (diff)
Must properly quote also the vars in config_build.mk when sourcing it
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap6
1 files changed, 4 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index 313c2a94e1d1..3d1bc88a49b6 100755
--- a/bootstrap
+++ b/bootstrap
@@ -2,10 +2,12 @@
if test -z "${SRC_ROOT}"; then
if test -f ./config_build.mk ; then
- . ./config_build.mk
+ sed -e 's/^\(export [A-Z0-9_]*=\)\(.*\)$/\1"\2"/' <config_build.mk >config_build.mk.sh
+ . ./config_build.mk.sh
+ rm config_build.mk.sh
else
if test -f ./config_host.mk ; then
- sed -e 's/^\(export .*=\)\(.*\)$/\1"\2"/' <config_host.mk >config_host.mk.sh
+ sed -e 's/^\(export [A-Z0-9_]*=\)\(.*\)$/\1"\2"/' <config_host.mk >config_host.mk.sh
. ./config_host.mk.sh
rm config_host.mk.sh
fi