From: Christian Schmidt Date: Wed, 11 Jun 2008 17:52:39 +0000 (+0200) Subject: Just made the build ö dtime summary nicer X-Git-Tag: v2.3-beta1~49 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=070fb401aab4b5a0573f0e805c4c2cf2149634d4 Just made the build ö dtime summary nicer --- diff --git a/tools/make-functions b/tools/make-functions index 1f66787da4..3c3b198f42 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