eba629deb7
"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
10 lines
284 B
Text
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
|