summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wx-config-1.46
-rw-r--r--wxrc-1.46
2 files changed, 4 insertions, 8 deletions
diff --git a/wx-config-1.4 b/wx-config-1.4
index 7dcb063..70b6b2c 100644
--- a/wx-config-1.4
+++ b/wx-config-1.4
@@ -19,8 +19,7 @@ _wxerror() {
}
if [ -n "${WX_ECLASS_CONFIG}" ]; then
- ${WX_ECLASS_CONFIG} "$@"
- exit 0
+ exec "${WX_ECLASS_CONFIG}" "$@"
else
if [ -e "${EPREFIX}"/var/lib/wxwidgets/current ]; then
. "${EPREFIX}"/var/lib/wxwidgets/current
@@ -31,10 +30,9 @@ else
[ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected"
if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then
- "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" "$@"
+ exec "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" "$@"
else
_wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
fi
- exit 0
fi
diff --git a/wxrc-1.4 b/wxrc-1.4
index 8339ee5..1757bf8 100644
--- a/wxrc-1.4
+++ b/wxrc-1.4
@@ -19,8 +19,7 @@ _wxerror() {
}
if [ -n "${WX_ECLASS_CONFIG}" ]; then
- $(${WX_ECLASS_CONFIG} --utility=wxrc) "$@"
- exit 0
+ exec "$("${WX_ECLASS_CONFIG}" --utility=wxrc)" "$@"
else
if [ -e "${EPREFIX}"/var/lib/wxwidgets/current ]; then
. "${EPREFIX}"/var/lib/wxwidgets/current
@@ -31,10 +30,9 @@ else
[ -z "${WXCONFIG}" -o "${WXCONFIG}" = none ] && _wxerror "No profile currently selected"
if [ -x "${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" ]; then
- $("${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" --utility=wxrc) "$@"
+ exec "$("${EPREFIX}/usr/${LIBDIR}/wx/config/${WXCONFIG}" --utility=wxrc)" "$@"
else
_wxerror "Cannot find wxWidgets profile ( ${WXCONFIG} )"
fi
- exit 0
fi