office-gobmx/config_host.mk.source
Jan Holesovsky 17ddd27bf5 Use config_host.mk.source when configuring 'build' for cross-compilation.
Change-Id: I2e6e2a98bbaf515ececa75948d6b20bf9a093fe5
2012-07-23 16:35:31 +02:00

11 lines
358 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"/' \
-e 's/^\s*export\s\+\([A-Z0-9_]*\)?=\(.*\)$/export \1="${\1:-\2}"/' config_host.mk >$temp_conf
source ./$temp_conf
rm $temp_conf