From 070fb401aab4b5a0573f0e805c4c2cf2149634d4 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Wed, 11 Jun 2008 19:52:39 +0200 Subject: [PATCH] =?utf8?q?Just=20made=20the=20build=20=F6=20dtime=20summar?= =?utf8?q?y=20nicer?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/make-functions | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/make-functions b/tools/make-functions index 1f66787da..3c3b198f4 100644 --- a/tools/make-functions +++ b/tools/make-functions @@ -142,7 +142,13 @@ beautify() ;; build_end) BUILD_TIME_END=`date +%s` - echo -ne "${DONE}***Build is finished now and took $[ $BUILD_TIME_END - $BUILD_TIME_START ] secs!${NORMAL}\n" + seconds=$[ $BUILD_TIME_END - $BUILD_TIME_START ] + hours=$((seconds / 3600)) + seconds=$((seconds % 3600)) + minutes=$((seconds / 60)) + seconds=$((seconds % 60)) + + echo -ne "${DONE}***Build is finished now and took $hours hour(s) $minutes minute(s) $seconds second(s)!${NORMAL}\n" ;; make_pkg) echo "$2" | while read PKG_VER PROGRAM OPTIONS -- 2.39.2