From 55b5f2107621f140b72bc7d5285f7912a4a0e830 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 06 Nov 2012 17:56:06 -0500 Subject: Implement oh_buildsystem_arch(). --- (limited to 'lib') 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}" +} -- cgit v0.9.1