cec5271db3
Change-Id: I6e5bef8840730f61ca976c72a808b9ffd21fe8dc Reviewed-on: https://gerrit.libreoffice.org/57883 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins
23 lines
415 B
Bash
23 lines
415 B
Bash
#!/bin/sh
|
|
#set -x
|
|
|
|
glv_var="$1"
|
|
glv_config="config_host.mk"
|
|
|
|
if [ "$glv_var" = "--build" ] ; then
|
|
glv_config="config_build.mk"
|
|
shift
|
|
elif [ "$glv_var" = "--host" ] ; then
|
|
shift
|
|
fi
|
|
|
|
while [ -n "$1" ] ; do
|
|
glv_var="$1"
|
|
shift
|
|
glv_value=$(grep "^ *export ${glv_var}=" ${glv_config} | sed -e "s/[^=]*=//")
|
|
export ${glv_var}="${glv_value}"
|
|
done
|
|
|
|
unset glv_var
|
|
unset glv_value
|
|
unset glv_config
|