cookutils rev 23
Fix broken function in cook (Thanks Erjo) + add cooknotes feature
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri May 06 00:05:14 2011 +0200 (2011-05-06) |
parents | 90ec7271d772 |
children | bf6325d1ecf4 |
files | cook cooker doc/cookutils.en.html web/cooker.cgi |
line diff
1.1 --- a/cook Thu May 05 22:43:47 2011 +0200 1.2 +++ b/cook Fri May 06 00:05:14 2011 +0200 1.3 @@ -75,6 +75,11 @@ 1.4 -e s'|\[0;39m \]||' $LOGS/$pkg.log 1.5 } 1.6 1.7 +# Log broken packages. 1.8 +broken() { 1.9 + echo "$pkg" >> $broken 1.10 +} 1.11 + 1.12 # Be sure package exist in wok. 1.13 check_pkg_in_wok() { 1.14 if [ ! -d "$WOK/$pkg" ]; then
2.1 --- a/cooker Thu May 05 22:43:47 2011 +0200 2.2 +++ b/cooker Fri May 06 00:05:14 2011 +0200 2.3 @@ -35,6 +35,8 @@ 2.4 Options: 2.5 --usage Display this short usage. 2.6 --setup Setup the Cooker environment. 2.7 + --notes Display all the cooknotes. 2.8 + --note= Add a note to the cooknotes. 2.9 --pkg= Same as 'cook pkg' but with cooker log. 2.10 --cat= Cook all packages of a category. 2.11 --flavor= Cook all packages of a flavor. 2.12 @@ -227,6 +229,16 @@ 2.13 hg clone $FLAVORS_URL flavors 2.14 cp -a ${wok}-hg $wok 2.15 separator && echo "" ;; 2.16 + --notes) 2.17 + # View cooknotes. 2.18 + echo -e "\nCooknotes" 2.19 + separator 2.20 + cat $cooknotes 2.21 + separator && echo "" ;; 2.22 + --note=*) 2.23 + # Blocked a pkg and want other to know why ? Post a note! 2.24 + note=${1#--note=} 2.25 + [ "$note" ] && echo "$note" >> $cooknotes ;; 2.26 --reverse=*) 2.27 # Cook all reverse dependencies for a packages. This command let us 2.28 # control the Cooker manually for commit that will cook a lot of packages.
3.1 --- a/doc/cookutils.en.html Thu May 05 22:43:47 2011 +0200 3.2 +++ b/doc/cookutils.en.html Fri May 06 00:05:14 2011 +0200 3.3 @@ -217,6 +217,7 @@ 3.4 Edit ~/Public/cgi-bin/cooker/cook.conf and you all done! 3.5 </p> 3.6 3.7 +<h3>Cooker CGI/Web</h3> 3.8 3.9 <!-- End content --> 3.10 </div>
4.1 --- a/web/cooker.cgi Thu May 05 22:43:47 2011 +0200 4.2 +++ b/web/cooker.cgi Fri May 06 00:05:14 2011 +0200 4.3 @@ -176,6 +176,11 @@ 4.4 $(tac $CACHE/activity | sed s"#^\([^']* : \)#<span class='log-date'>\0</span>#"g) 4.5 </pre> 4.6 4.7 +<h2>Cooknotes</h2> 4.8 +<pre> 4.9 +$(cat $cooknotes) 4.10 +</pre> 4.11 + 4.12 <h2>Commits</h2> 4.13 <pre> 4.14 $(cat $commits) 4.15 @@ -188,12 +193,12 @@ 4.16 4.17 <h2>Broken</h2> 4.18 <pre> 4.19 -$(cat $broken | sed s"#^[^']*#<a href='cooker.cgi?log=\0'>\0</a>#"g) 4.20 +$(cat $broken | sed s"#^[^']*#<a href='cooker.cgi?pkg=\0'>\0</a>#"g) 4.21 </pre> 4.22 4.23 -<h2>Bloked</h2> 4.24 +<h2>Blocked</h2> 4.25 <pre> 4.26 -$(cat $blocked | sed s"#^[^']*#<a href='cooker.cgi?log=\0'>\0</a>#"g) 4.27 +$(cat $blocked | sed s"#^[^']*#<a href='cooker.cgi?pkg=\0'>\0</a>#"g) 4.28 </pre> 4.29 4.30 <h2>Latest cook</h2>