diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-06 19:20:10 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-11-06 19:20:10 +0100 |
commit | bac196f01b91ff8b830e13e00226fbc7f37fa332 (patch) | |
tree | 43a742468308ffd2942dc3c2627a1dd0a8cea041 /scripts/libptxdist.sh | |
parent | 21f6bbd4ca28c4b98b4aae0e33c8875a6b156fd5 (diff) | |
download | ptxdist-bac196f01b91ff8b830e13e00226fbc7f37fa332.tar.gz ptxdist-bac196f01b91ff8b830e13e00226fbc7f37fa332.tar.xz |
[libptxdist] use set -a for ptxd_source_kconfig
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/libptxdist.sh')
-rw-r--r-- | scripts/libptxdist.sh | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh index 7f8ab65a1..efde657d9 100644 --- a/scripts/libptxdist.sh +++ b/scripts/libptxdist.sh @@ -99,17 +99,14 @@ ptxd_dialog_yesno() { # source a kconfig file # ptxd_source_kconfig() { - local config config_source + local ret - config="${1}" - config_source="${PTXDIST_TEMPDIR}/${config##*/}" + set -a + source "${1}" 2> /dev/null + ret=$? + set +a - if test \! -e "${config}"; then - return 1 - fi - - sed -e "s/^\([^#]*=.*\)/export \1/" "${config}" > "${config_source}" - . "${config_source}" || return + return ${ret} } export -f ptxd_source_kconfig |