summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-29 15:24:31 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-29 15:24:31 (EDT)
commit5d853f87ce0e6197c7ba929b5e05ca86e0397f18 (patch)
treeedce38444c82f2d3b11b40cb422e052118777422
parent6fcbbe84fc7510888058b2f227a596046144194c (diff)
Implement ob_get_system_{arch,plat}().
-rw-r--r--lib/metadata.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/metadata.sh b/lib/metadata.sh
index 1ed700f..266e13a 100644
--- a/lib/metadata.sh
+++ b/lib/metadata.sh
@@ -109,6 +109,36 @@ ob_parse_version()
return ${?}
}
+ob_get_system_arch()
+{
+ _ob_local
+
+ if [ ${?} -gt 0 ]; then
+ _ob_return 125
+ return ${?}
+ fi
+
+ _ob_metadata_do 'get_system_arch'
+
+ _ob_return ${?}
+ return ${?}
+}
+
+ob_get_system_plat()
+{
+ _ob_local
+
+ if [ ${?} -gt 0 ]; then
+ _ob_return 125
+ return ${?}
+ fi
+
+ _ob_metadata_do 'get_system_plat'
+
+ _ob_return ${?}
+ return ${?}
+}
+
_ob_metadata_do()
{
_ob_local _obmd_func