* [gentoo-portage-dev] [PATCH 1/6] econf: Replace unnecessary 'case' statements with 'if's
@ 2014-08-18 17:51 99% ` Michał Górny
0 siblings, 0 replies; 1+ results
From: Michał Górny @ 2014-08-18 17:51 UTC (permalink / raw
To: gentoo-portage-dev; +Cc: Michał Górny
Replace the 'case' statements used to match 'configure' output with
simpler pattern-matching 'if's.
Acked-by: Alexander Berntsen <bernalex@gentoo.org>
---
bin/phase-helpers.sh | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 47bd843..6a5ce85 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -525,19 +525,15 @@ econf() {
local conf_help=$("${ECONF_SOURCE}/configure" --help 2>/dev/null)
if ___eapi_econf_passes_--disable-dependency-tracking; then
- case "${conf_help}" in
- *--disable-dependency-tracking*)
- set -- --disable-dependency-tracking "$@"
- ;;
- esac
+ if [[ ${conf_help} == *--disable-dependency-tracking* ]]; then
+ set -- --disable-dependency-tracking "$@"
+ fi
fi
if ___eapi_econf_passes_--disable-silent-rules; then
- case "${conf_help}" in
- *--disable-silent-rules*)
- set -- --disable-silent-rules "$@"
- ;;
- esac
+ if [[ ${conf_help} == *--disable-silent-rules* ]]; then
+ set -- --disable-silent-rules "$@"
+ fi
fi
fi
--
2.0.4
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-08-18 17:51 [gentoo-portage-dev] [PATCHES] Random issues and refactoring before EAPI6 series Michał Górny
2014-08-18 17:51 99% ` [gentoo-portage-dev] [PATCH 1/6] econf: Replace unnecessary 'case' statements with 'if's Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox