summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-14 23:58:41 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-14 23:58:41 (EDT)
commit4c912ce3112840e1dbdf4e76829e460655a0fca8 (patch)
tree328c19ff7adb55a4635de85adfd218f9dbf4aad5 /lib
parent787a355bd7eac745efbd39668bd6bd4490c25f06 (diff)
_ob_match_plat(): Move closer to usage
Diffstat (limited to 'lib')
-rw-r--r--lib/metadata.sh32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/metadata.sh b/lib/metadata.sh
index e0a1c9a..11b8f8e 100644
--- a/lib/metadata.sh
+++ b/lib/metadata.sh
@@ -192,22 +192,6 @@ _ob_match_arch()
return 0
}
-_ob_match_plat()
-{
- local match_plat="${1}"
- local field_plat="${2}"
- shift 2 || _ob_abort
-
- if [ x"${field_plat}" = x'any' ]; then
- return 0
- fi
- if [ x"${field_plat}" = x"${match_plat}" ]; then
- return 0
- fi
-
- return 1
-}
-
ob_arch_is_concerned()
{
local host_arch="${1}"
@@ -246,6 +230,22 @@ ob_arch_is_concerned()
fi
}
+_ob_match_plat()
+{
+ local match_plat="${1}"
+ local field_plat="${2}"
+ shift 2 || _ob_abort
+
+ if [ x"${field_plat}" = x'any' ]; then
+ return 0
+ fi
+ if [ x"${field_plat}" = x"${match_plat}" ]; then
+ return 0
+ fi
+
+ return 1
+}
+
ob_plat_is_concerned()
{
local host_plat="${1}"