summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2023-01-07 19:59:39 +0100
committerArsen Arsenović <arsen@aarsen.me>2023-01-09 14:01:17 +0100
commita8056ebf975a0ae4184a2c8e2b90718e273e8675 (patch)
tree34c17ea94479b090b70a23f69f2b906fac00d6b3
parentCheck in wx-config, wxrc and wxwin.m4 (diff)
downloadeselect-wxwidgets-a8056ebf975a0ae4184a2c8e2b90718e273e8675.tar.gz
eselect-wxwidgets-a8056ebf975a0ae4184a2c8e2b90718e273e8675.tar.bz2
eselect-wxwidgets-a8056ebf975a0ae4184a2c8e2b90718e273e8675.zip
{wxrc,wx-config}-1.4: Propagate error codes properly
-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