summaryrefslogtreecommitdiffstats
path: root/lib/buildsystem.sh
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-11-06 17:56:06 (EST)
committer P. J. McDermott <pjm@nac.net>2012-11-06 17:56:06 (EST)
commit55b5f2107621f140b72bc7d5285f7912a4a0e830 (patch)
tree808edde02dd9326227aa2539b3ec6875295f17e8 /lib/buildsystem.sh
parentedbac28f9109eb4406ddbfc323c521515029ac73 (diff)
Implement oh_buildsystem_arch().
Diffstat (limited to 'lib/buildsystem.sh')
-rw-r--r--lib/buildsystem.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh
index 7cf70f5..6819688 100644
--- a/lib/buildsystem.sh
+++ b/lib/buildsystem.sh
@@ -106,3 +106,18 @@ oh_buildsystem_do()
: error
fi
}
+
+oh_buildsystem_arch()
+{
+ _oh_local _ohbsa_arch _ohbsa_system
+
+ if [ ${#} -eq 2 ]; then
+ _ohbsa_arch="${1}"
+ _ohbsa_system="${2}"
+ else
+ _oh_return 125
+ return ${?}
+ fi
+
+ cat '@@ARCHTAB@@/'"${_ohbsa_arch}/${_ohbsa_system}"
+}