diff options
author | P. J. McDermott <pjm@nac.net> | 2012-10-25 16:40:00 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-10-25 16:40:00 (EDT) |
commit | bc0a95fd13bd1d033f02d45e537aa48b6f0de275 (patch) | |
tree | bfda81b664d060d2667eb21c69d6ac13893410fc | |
parent | 9ecf1fc0e9adea349c18b9cfe641e485718153f4 (diff) |
Reduce platforms in ob_reduce_deps().
-rw-r--r-- | lib/deps.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/deps.sh b/lib/deps.sh index 5ec4ccd..5584e65 100644 --- a/lib/deps.sh +++ b/lib/deps.sh @@ -163,17 +163,20 @@ ob_parse_dep() ob_reduce_deps() { - _ob_local _obrd_opt _obrd_host_arch _obrd_deps \ + _ob_local _obrd_opt _obrd_host_arch _obrd_host_plat _obrd_deps \ _obrd_orig_ifs _obrd_dep_and _obrd_dep_or \ _obrd_dep_list _obrd_dep_or_list _obrd_dep _obrd_union='false' - while getopts 'a:u' _obrd_opt; do + while getopts 'a:P:u' _obrd_opt; do case "${_obrd_opt}" in a) _obrd_host_arch="${OPTARG}" ;; + P) + _obrd_host_plat="${OPTARG}" + ;; u) _obrd_union='true' ;; @@ -202,7 +205,7 @@ ob_reduce_deps() for _obrd_dep_or in ${_obrd_dep_and}; do IFS="${_obrd_orig_ifs}" _obrd_dep="$(ob_parse_dep -a "${_obrd_host_arch}" \ - "${_obrd_dep_or}")" + -P "${_obrd_host_plat}" "${_obrd_dep_or}")" if [ -n "${_obrd_dep}" ]; then if [ -n "${_obrd_dep_or_list}" ]; then _obrd_dep_or_list="${_obrd_dep_or_list} | " @@ -218,7 +221,7 @@ ob_reduce_deps() fi else _obrd_dep="$(ob_parse_dep -a "${_obrd_host_arch}" \ - "${_obrd_dep_and}")" + -P "${_obrd_host_plat}" "${_obrd_dep_and}")" if [ -n "${_obrd_dep}" ]; then if [ -n "${_obrd_dep_list}" ]; then _obrd_dep_list="${_obrd_dep_list}, " |