office-gobmx/config_host.mk.source
David Tardon eba629deb7 specify the sourced file with path
"man source" says:

"If filename does not contain a slash, file names  in  PATH  are used to
find the directory containing file‐ name.  The file searched for in PATH
need not  be  executable. When  bash  is  not  in posix  mode,  the
current directory is searched if no file is found in PATH."

Change-Id: I7dc15d30ba925c71d02da2cd8b91ea08192730fc
2012-06-22 13:11:41 +02:00

10 lines
284 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