From f031816ed1f8659819c5093c08a78346e5ae5f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 31 Jul 2012 21:30:39 +0200 Subject: easy_e17.sh: add job accomplished time --- easy_e17.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/easy_e17.sh b/easy_e17.sh index 353a9ee..f5c71a0 100755 --- a/easy_e17.sh +++ b/easy_e17.sh @@ -1308,6 +1308,8 @@ if [ ! "$action" == "srcupdate" ]; then check_ld_path fi +start_time=$(date '+%s') + # sources open_header "Source checkout/update" if [ -z "$skip_srcupdate" ]; then @@ -1449,8 +1451,16 @@ if [ $ctags_enabled -eq 1 ]; then echo "- $ctags_file" fi +end_time=$(date '+%s') +dt=$((end_time - start_time)) +ds=$((dt % 60)) +dm=$(((dt / 60) % 60)) +dh=$((dt / 3600)) + open_header " YEAAAH !!" echo +printf ' job accomplished in %d:%02d:%02d\n' $dh $dm $ds +echo echo " you might like to type $ sudo ln -s $install_path/share/xsessions/enlightenment.desktop /usr/share/xsessions/" echo " and feed /etc/profile.d/e17.sh with:" echo " export E17DIR=$install_path" -- cgit v1.1-2-g2b99