cookutils diff cook @ rev 17
Improve debug info and syntax highlither
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 05 17:45:44 2011 +0200 (2011-05-05) |
parents | dcf50aa1bb76 |
children | 58496d7c2c18 |
line diff
1.1 --- a/cook Thu May 05 17:05:19 2011 +0200 1.2 +++ b/cook Thu May 05 17:45:44 2011 +0200 1.3 @@ -213,7 +213,7 @@ 1.4 1.5 # Display debugging erroe info. 1.6 debug_info() { 1.7 - echo "Debug information" 1.8 + echo -e "\nDebug information" 1.9 separator 1.10 fgrep ERROR $LOGS/$pkg.log 1.11 separator && echo "" 1.12 @@ -388,11 +388,7 @@ 1.13 fi 1.14 # ERROR can be echoed any time in cookit() 1.15 if grep -q ^ERROR $LOGS/$pkg.log; then 1.16 - echo "" 1.17 - debug_info | tee $CACHE/debug 1.18 - # Debug info on top, easier to check errors. 1.19 - cat $CACHE/debug $LOGS/$pkg.log > $CACHE/$pkg.debug 1.20 - mv -f $CACHE/$pkg.debug $LOGS/$pkg.log 1.21 + debug_info | tee -a $LOGS/$pkg.log 1.22 exit 1 1.23 fi 1.24 } 1.25 @@ -674,7 +670,7 @@ 1.26 fi 1.27 fi 1.28 # Finally we DONT WANT to build the *-dev or packages with WANTED="$pkg" 1.29 - # You automation: use the Cooker Build Bot. 1.30 + # You want automation: use the Cooker Build Bot. 1.31 #[ -d "$WOK/$pkg-dev" ] && cook $pkg-dev 1.32 ;; 1.33 esac