cookutils diff cooker @ 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 0eb341935f31
line diff
     1.1 --- a/cooker	Thu May 05 22:43:47 2011 +0200
     1.2 +++ b/cooker	Fri May 06 00:05:14 2011 +0200
     1.3 @@ -35,6 +35,8 @@
     1.4  Options:
     1.5    --usage        Display this short usage.
     1.6    --setup        Setup the Cooker environment.
     1.7 +  --notes        Display all the cooknotes.
     1.8 +  --note=        Add a note to the cooknotes.
     1.9    --pkg=         Same as 'cook pkg' but with cooker log.
    1.10    --cat=         Cook all packages of a category.
    1.11    --flavor=      Cook all packages of a flavor.
    1.12 @@ -227,6 +229,16 @@
    1.13  		hg clone $FLAVORS_URL flavors
    1.14  		cp -a ${wok}-hg $wok
    1.15  		separator && echo "" ;;
    1.16 +	--notes)
    1.17 +			# View cooknotes.
    1.18 +			echo -e "\nCooknotes"
    1.19 +			separator
    1.20 +			cat $cooknotes
    1.21 +			separator && echo "" ;;
    1.22 +	--note=*)
    1.23 +			# Blocked a pkg and want other to know why ? Post a note!
    1.24 +			note=${1#--note=}
    1.25 +			[ "$note" ] && echo "$note" >> $cooknotes ;;
    1.26  	--reverse=*)
    1.27  		# Cook all reverse dependencies for a packages. This command let us
    1.28  		# control the Cooker manually for commit that will cook a lot of packages.