summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2007-01-26 15:03:46 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2007-01-26 15:03:46 +0000
commit9e6695924e5698f52efc1413b5e5285eca0924e5 (patch)
tree5460c0df8ff9651435a58d26c55848739b1bf18e /scripts
parentd0a720e04bd92b5d117fb1e35ff91d06a89f16cd (diff)
downloadptxdist-9e6695924e5698f52efc1413b5e5285eca0924e5.tar.gz
ptxdist-9e6695924e5698f52efc1413b5e5285eca0924e5.tar.xz
* scripts/libptxdist.sh:
unbreak ptxd_get_ptxconf git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6946 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libptxdist.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/scripts/libptxdist.sh b/scripts/libptxdist.sh
index 7cfabef3f..72d296c3e 100644
--- a/scripts/libptxdist.sh
+++ b/scripts/libptxdist.sh
@@ -22,14 +22,16 @@ shell() {
ptxd_get_ptxconf() {
- if test -z "${PTXCONF_MODULES}"; then
- if test -f ${PTXCONFIG}; then
- source "${PTXCONFIG}"
- echo "${!1}"
- else
- echo "ptxconfig_not_available_please_report_this_bug"
- fi
+ if test -z "${_ptxd_get_ptxconf_sourced}"; then
+ if test -f "${PTXCONFIG}"; then
+ source "${PTXCONFIG}"
+ _ptxd_get_ptxconf_sourced=true
+ else
+ return
+ fi
fi
+
+ echo "${!1}"
}
#