5 glv_config
="config_host.mk"
7 if [ "$glv_var" = "--build" ] ; then
8 glv_config
="config_build.mk"
10 elif [ "$glv_var" = "--host" ] ; then
14 # full path, in case we export a "wrong" PATH
15 test -n "$GREP" && glv_grep
="$GREP" || glv_grep
=$
(command -v grep)
16 test -n "$SED" && glv_sed
="$SED" || glv_sed
=$
(command -v sed)
18 while [ -n "$1" ] ; do
21 glv_value
=$
("${glv_grep}" "^ *\(export *\)\?${glv_var}=" ${glv_config} | "${glv_sed}" -e 's/[^=]*=//')
22 export ${glv_var}="${glv_value}"