diff options
author | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-02-13 20:16:26 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de> | 2016-02-13 20:16:26 +0000 |
commit | fb434bec898762f9859ca6dd4d9686027ace3c0c (patch) | |
tree | e810c8e3977e67d081276018a345a4661a3bf9dd /build.sh | |
parent | 36eb07546b8fa2d50d59f7ac85fc5c9238d4c5fe (diff) | |
download | midipix_build-fb434bec898762f9859ca6dd4d9686027ace3c0c.tar.bz2 midipix_build-fb434bec898762f9859ca6dd4d9686027ace3c0c.tar.xz |
Fixed rsync and util_linux, removed popt.
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -11,6 +11,7 @@ log_msg info "Build started by ${BUILD_USER:=${USER}}@${BUILD_HNAME:=$(hostname) log_env_vars ${LOG_ENV_VARS}; (mkdir -p ${PREFIX} ${PREFIX_NATIVE} ${PREFIX_TARGET} ${WORKDIR}; BUILD_NFINI=${BUILD_NSKIP:=${BUILD_NFAIL:=${BUILD_NBUILT:=0}}}; +BUILD_SECS=$(command date +%s); for BUILD_LVL in 0 1 2 3; do for BUILD_SCRIPT_FNAME in ${BUILD_LVL}[0-9][0-9].*.build; do if [ -n "${ARG_BUILD_SCRIPTS}" ]\ @@ -54,6 +55,11 @@ for BUILD_LVL in 0 1 2 3; do fi; done; log_msg info "${BUILD_NFINI} finished, ${BUILD_NSKIP} skipped, and ${BUILD_NFAIL} failed builds in ${BUILD_NBUILT} build script(s)."; +: $((BUILD_SECS=$(command date +%s)-${BUILD_SECS})); +: $((BUILD_HOURS=${BUILD_SECS}/3600)); +: $((BUILD_MINUTES=(${BUILD_SECS}%3600)/60)); +: $((BUILD_SECS=(${BUILD_SECS}%3600)%60)); +log_msg info "Build time: ${BUILD_HOURS} hour(s), ${BUILD_MINUTES} minute(s), and ${BUILD_SECS} second(s)."; if [ $(( ${BUILD_NFINI} + ${BUILD_NSKIP} )) -ge 0 ]\ && [ ${BUILD_NFAIL} -eq 0 ]\ && [ ${ARG_TARBALL:-0} -eq 1 ]; then |