From ed6f96f26c2b018b73cc3d440d07d1cc50007e10 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 30 Aug 2018 11:16:41 +0900 Subject: New func read_config_from_stdin and cleanup_vars_attrs. --- src/gpg-error-config-main.sh | 16 ++-------------- src/pkgconf-funcs.sh | 23 +++++++++++++++++++++-- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/gpg-error-config-main.sh b/src/gpg-error-config-main.sh index 637db7d..37eb193 100644 --- a/src/gpg-error-config-main.sh +++ b/src/gpg-error-config-main.sh @@ -5,13 +5,6 @@ else myname="gpgrt-config" fi -if find_file_in_path ${myname%-config}.pc $PKG_CONFIG_PATH; then - CONFIG_FILE=$RESULT -else - echo "Can't find ${myname%-config}.pc" 1>&2 - exit 1 -fi - usage() { cat <&2 + exit 1 + fi + read_config_from_stdin < $config_file +} + +cleanup_vars_attrs () { + eval unset $VAR_list VAR_list + eval unset $ATTR_list ATTR_list +} + #### end of pkgconf-funcs -- cgit v1.2.3