277b7fd3a4
it allows to source variables from config_host.mk into shell; there are many different hacks for this on other locations Use this script in bin/distro-install-*; The original solution with 'eval' did not work because shell was not able to pass that many arguments Change-Id: I3d9eb2fe2d6804a3c7783487e9c70f093edb2ad5
10 lines
282 B
Text
10 lines
282 B
Text
# this script allows to correctly source config_host.mk into existing shell
|
|
#
|
|
# Usage:
|
|
#
|
|
# source ./config_host.mk.source
|
|
|
|
temp_conf=`mktemp config_host.mk.XXXXXX`
|
|
sed -e 's/^\s*\(export [A-Z0-9_]*=\)\(.*\)$/\1"\2"/' config_host.mk >$temp_conf
|
|
source $temp_conf
|
|
rm $temp_conf
|