tazwok rev 270

Automated merge with https://bitbucket.org/gokhlayeh/tazwok-experimental
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Feb 14 02:48:05 2011 +0100 (2011-02-14)
parents bf7d07bf23ef 0df3d667a64e
children 6b093970f4f9
files tazwok
line diff
     1.1 --- a/tazwok	Sun Feb 13 20:20:46 2011 +0000
     1.2 +++ b/tazwok	Mon Feb 14 02:48:05 2011 +0100
     1.3 @@ -61,6 +61,7 @@
     1.4    hgup           Pull and update a wok under Hg.
     1.5    maintainers    List all maintainers in the wok.
     1.6    maintained-by  List packages maintained by a contributor.\n
     1.7 +  tags           List all tags used in wok receipts.
     1.8   
     1.9   You can use `basename $0` command --help to list avaible options.
    1.10   \033[1mImportant - *: \033[0m Commands which need a rewrite."
    1.11 @@ -2806,6 +2807,22 @@
    1.12  		echo "Packages maintained by $2: $PACKAGEs"
    1.13  		echo ""
    1.14  	;;
    1.15 +	tags)
    1.16 +		get_tazwok_config
    1.17 +		echo -e "\n\033[1mTags list :\033[0m"
    1.18 +		horizontal_line
    1.19 +		cd $WOK
    1.20 +		for i in */receipt; do
    1.21 +			unset TAGS
    1.22 +			source $i
    1.23 +			for t in $TAGS; do
    1.24 +				grep -q ^$t$ $tmp/tags && continue
    1.25 +				echo $t | tee -a $tmp/tags
    1.26 +			done
    1.27 +		done
    1.28 +		horizontal_line
    1.29 +		echo "$(wc -l $tmp/tags | cut -f1 -d ' ') tags listed."
    1.30 +	;;		
    1.31  	check-src)
    1.32  		# Verify if upstream package is still available
    1.33  		#