diff options
-rw-r--r-- | locale/en_US/opkbuild.sh | 4 | ||||
-rw-r--r-- | src/opkbuild.sh | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/locale/en_US/opkbuild.sh b/locale/en_US/opkbuild.sh index 01be733..cbac5f0 100644 --- a/locale/en_US/opkbuild.sh +++ b/locale/en_US/opkbuild.sh @@ -58,6 +58,10 @@ msg_opkbuild_build_source='Building source package...' msg_opkbuild_cant_make_src_pkg_dir='Can'\''t make data directory for source package' msg_opkbuild_cant_install_src_pkg_file='Can'\''t install source package file' msg_opkbuild_cant_rm_src_pkg_data='Can'\''t clean up data directory for source package' +msg_opkbuild_build_arch_stat_header='Build system:' +msg_opkbuild_arch_stat_arch=' Architecture: %s' +msg_opkbuild_arch_stat_plat=' Platform: %s' +msg_opkbuild_host_arch_stat_header='Host system:' # ob-checkbuilddeps msg_opkbuild_checking_build_deps='Checking build dependencies...' 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 "${@}" |