From 314e8d263e3b44fec27641921d6c4aa7e48a71ec Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 04 Oct 2012 21:10:04 -0400 Subject: Print build/host arch/plat in opkbuild. --- (limited to 'src/opkbuild.sh') diff --git a/src/opkbuild.sh b/src/opkbuild.sh index 64c27b6..4aa133a 100644 --- a/src/opkbuild.sh +++ b/src/opkbuild.sh @@ -88,6 +88,8 @@ main() eval "$(ob-buildenv | sed 's/^/export /')" + print_arch_stats + ob-unpacksource ob-applypatches ob-installplatconf @@ -283,4 +285,14 @@ build_source() rm -Rf "src:${src}.data" || ob_error "$(ob_get_msg 'cant_rm_src_pkg_data')" } +print_arch_stats() +{ + ob_info "$(ob_get_msg 'build_arch_stat_header')" + ob_info "$(ob_get_msg 'arch_stat_arch')" "${OB_BUILD_ARCH}" + ob_info "$(ob_get_msg 'arch_stat_plat')" "${OB_BUILD_PLATFORM}" + ob_info "$(ob_get_msg 'host_arch_stat_header')" + ob_info "$(ob_get_msg 'arch_stat_arch')" "${OB_HOST_ARCH}" + ob_info "$(ob_get_msg 'arch_stat_plat')" "${OB_HOST_PLATFORM}" +} + main "${@}" -- cgit v0.9.1