Branch libreoffice-5-0-4
[LibreOffice.git] / bin / get_config_variables
blob43a3ad1d2ab003bb237e4e236a9d431b30adf61f
1 #!/bin/sh
2 #set -x
4 glv_var="$1"
5 glv_config="config_host.mk"
7 if [ "$glv_var" = "--build" ] ; then
8 glv_config="config_build.mk"
9 shift
10 elif [ "$glv_var" = "--host" ] ; then
11 shift
14 while [ -n "$1" ] ; do
15 glv_var="$1"
16 shift
17 glv_value=$(grep "^ *export ${glv_var}=" ${glv_config} | sed -e "s/[^=]*=//")
18 export ${glv_var}="${glv_value}"
19 done
21 unset glv_var
22 unset glv_value
23 unset glv_vonfig