From e8533e6b128735f055d9487f21e1041f225103d9 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 26 May 2013 17:19:49 -0400 Subject: oh_buildsystem_arch(): Accept build system as arg. --- diff --git a/lib/buildsystem.sh b/lib/buildsystem.sh index cfb92d8..cc910b8 100644 --- a/lib/buildsystem.sh +++ b/lib/buildsystem.sh @@ -142,17 +142,19 @@ oh_buildsystem_arch() if [ ${#} -eq 1 ]; then _ohbsa_arch="${1}" + _ohbsa_system="$(oh_buildsystem_find 'configure')" + if [ ${?} -ne 0 ]; then + _oh_return 1 + return ${?} + fi + elif [ ${#} -eq 2 ]; then + _ohbsa_arch="${1}" + _ohbsa_system="${2}" else _oh_return 125 return ${?} fi - _ohbsa_system="$(oh_buildsystem_find 'configure')" - if [ ${?} -ne 0 ]; then - _oh_return 1 - return ${?} - fi - # Try to find a suitable build system host arch. for _ohbsa_bs_arch in $(cat '@@ARCHTABDIR@@/'"${_ohbsa_arch}/${_ohbsa_system}") do -- cgit v0.9.1