summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2018-11-08 10:47:28 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-11-08 11:55:46 +0200
commit100202920be59bb6841ccdd937c5f88c72266de3 (patch)
tree61eec829e7368f31e529b8404153cd0b73482596 /abuild.in
parent17cb68e9fb8a1fcb830c0895b3bd9fab91d4b66c (diff)
downloadabuild-100202920be59bb6841ccdd937c5f88c72266de3.tar.gz
abuild-100202920be59bb6841ccdd937c5f88c72266de3.tar.bz2
abuild-100202920be59bb6841ccdd937c5f88c72266de3.tar.xz
abuild-100202920be59bb6841ccdd937c5f88c72266de3.zip
abuild: print build start, end date and elapsed time
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 42382e5..b7921f1 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1519,11 +1519,15 @@ build_abuildrepo() {
# check early if we have abuild key
abuild-sign --installed
logcmd "building $repo/$pkgname-$pkgver-r$pkgrel"
- msg "Building $repo/$pkgname $pkgver-r$pkgrel (using $program $program_version)"
+ local _starttime=$(date --utc +%s)
+ msg "Building $repo/$pkgname $pkgver-r$pkgrel (using $program $program_version) started $(date -R)"
for part in sanitycheck builddeps clean fetch unpack prepare mkusers build \
$_check rootpkg; do
runpart $part
done
+ local _endtime=$(date --utc +%s)
+ local _difftime=$((_endtime - _starttime))
+ msg "Build complete at $(date -R) elaped time $((_difftime/3600))h $((_difftime/60%60))m $((_difftime%60))s"
cleanup $CLEANUP
fi
update_abuildrepo_index