fix sourcing config_host.mk

Change-Id: I0ef147e1a86a7a88359c30c458e69cc5ac35741c
This commit is contained in:
Peter Foley
2012-10-25 20:34:45 -04:00
parent 42adaa004c
commit 638adb6373

View File

@@ -5,7 +5,7 @@
# source ./config_host.mk.source # source ./config_host.mk.source
temp_conf=`mktemp config_host.mk.XXXXXX` temp_conf=`mktemp config_host.mk.XXXXXX`
sed -e 's/^\s*\(export [A-Z0-9_]*=\)\(.*\)$/\1"\2"/' \ sed -n -e 's/^\s*\(export [A-Z0-9_]*=\)\(.*\)$/\1"\2"/p' \
-e 's/^\s*export\s\+\([A-Z0-9_]*\)?=\(.*\)$/export \1="${\1:-\2}"/' config_host.mk >$temp_conf -e 's/^\s*export\s\+\([A-Z0-9_]*\)?=\(.*\)$/export \1="${\1:-\2}"/p' config_host.mk >$temp_conf
source ./$temp_conf source ./$temp_conf
rm $temp_conf rm $temp_conf