projects
/
people
/
pmueller
/
ipfire-2.x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a32b4ee
)
Just made the build รถ dtime summary nicer
author
Christian Schmidt
<maniacikarus@ipfire.org>
Wed, 11 Jun 2008 17:52:39 +0000
(19:52 +0200)
committer
Christian Schmidt
<maniacikarus@ipfire.org>
Wed, 11 Jun 2008 17:52:39 +0000
(19:52 +0200)
tools/make-functions
patch
|
blob
|
blame
|
history
diff --git
a/tools/make-functions
b/tools/make-functions
index
1f66787
..
3c3b198
100644
(file)
--- 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