From d23a01def42d06b7f349fb3359a1f0838656a28a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 30 Aug 2014 01:25:51 -0400 Subject: {arch,plat}_is_concerned(): Fix handling of "all" --- (limited to 'lib') diff --git a/lib/archplat.sh b/lib/archplat.sh index 7100568..d7b1424 100644 --- a/lib/archplat.sh +++ b/lib/archplat.sh @@ -94,12 +94,6 @@ arch_is_concerned() if [ "x${arches}" = 'x' ]; then return 0 - elif [ "x${host_arch}" = 'xall' ]; then - if [ "x${arches}" = 'xall' ]; then - return 0 - else - return 1 - fi else seen_arch=1 for arch in ${arches}; do @@ -109,7 +103,7 @@ arch_is_concerned() then seen_arch=1 break - else + elif [ "x${host_arch}" != 'xall' ]; then seen_arch=0 fi elif match_arch "${host_arch}" "${arch}"; then @@ -131,12 +125,6 @@ plat_is_concerned() if [ "x${plats}" = 'x' ]; then return 0 - elif [ "x${host_plat}" = 'xall' ]; then - if [ "x${plats}" = 'xall' ]; then - return 0 - else - return 1 - fi else seen_plat=1 for plat in ${plats}; do @@ -146,7 +134,7 @@ plat_is_concerned() then seen_plat=1 break - else + elif [ "x${host_plat}" != 'xall' ]; then seen_plat=0 fi elif match_plat "${host_plat}" "${plat}"; then -- cgit v0.9.1