office-gobmx/config_host.mk.source
Petr Mladek 277b7fd3a4 new script config_host.mk.source
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
2012-06-11 18:24:22 +02:00

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