summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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}"
+}