# HG changeset patch # User Pascal Bellard # Date 1443007897 -7200 # Node ID 3c3335a506af1219a021484c37c2c44ff3092f19 # Parent 050f39040fe4d793e3d24d52f4cbb43c5424bb42 cook: add cook time in debug_info (again) diff -r 050f39040fe4 -r 3c3335a506af cook --- a/cook Wed Sep 23 10:37:37 2015 +0200 +++ b/cook Wed Sep 23 13:31:37 2015 +0200 @@ -393,6 +393,7 @@ # L10n: specify your format of date and time (to help: man date) # L10n: not bad one is '+%x %R' _ 'Cook date: %s' "$(date "$(_ '+%%F %%R')")" + [ "$time" ] && _ 'Cook time: %ds' "$(($(date +%s) - $time))" # L10n: Please, translate all messages beginning with ERROR in a same way lerror=$(_n 'ERROR') for error in \ @@ -404,7 +405,6 @@ fgrep "$error" $LOGS/$pkg.log done > $LOGS/$pkg.log.debug_info 2>&1 cat $LOGS/$pkg.log.debug_info - [ "$time" ] && _ 'Cook time : %ds' "$(($(date +%s) - $time))" rm -f $LOGS/$pkg.log.debug_info separator; newline }