tazwok rev 107
Add command 'maintained-by' to list pkgs by maintainer
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jan 17 23:55:08 2009 +0100 (2009-01-17) |
parents | b314f3de7edf |
children | 5511fa6e344d |
files | tazwok |
line diff
1.1 --- a/tazwok Sat Jan 17 23:48:00 2009 +0100 1.2 +++ b/tazwok Sat Jan 17 23:55:08 2009 +0100 1.3 @@ -83,7 +83,7 @@ 1.4 usage () 1.5 { 1.6 echo -e "\nSliTaz sources compiler and packages generator - Version: $VERSION\n 1.7 -\033[1mUsage: \033[0m `basename $0` [command] [package|list|category|dir] [--option] 1.8 +\033[1mUsage: \033[0m `basename $0` [command] [package|list|category|dir|id] [--option] 1.9 \033[1mCommands: \033[0m\n 1.10 usage Print this short usage. 1.11 stats Print Tazwok statistics from the config file and the wok. 1.12 @@ -102,7 +102,9 @@ 1.13 new-tree Prepare a new package tree and receipt (--interactive). 1.14 gen-list Generate a packages list for a repository (--text). 1.15 gen-clean-wok Gen a clean wok in a dir ('clean-wok' cleans current wok). 1.16 - remove Remove a package from the wok.\n" 1.17 + remove Remove a package from the wok. 1.18 + hgup Pull and update a wok under HG. 1.19 + maintained-by List packages maintained by a contributor\n" 1.20 } 1.21 1.22 # Status function. 1.23 @@ -1213,6 +1215,25 @@ 1.24 fi 1.25 cd $WOK 1.26 hg pull && hg update ;; 1.27 + maintained-by) 1.28 + # Search for packages maintained by a packagers. 1.29 + if [ ! -n "$2" ]; then 1.30 + echo "Specify a name or mail of a maintainer." 1.31 + exit 0 1.32 + fi 1.33 + echo "Maintainer packages" 1.34 + echo "================================================================================" 1.35 + for pkg in $WOK/* 1.36 + do 1.37 + . $pkg/receipt 1.38 + if echo "$MAINTAINER" | grep -q "$2"; then 1.39 + echo "$PACKAGE" 1.40 + packages=$(($packages+1)) 1.41 + fi 1.42 + done 1.43 + echo "================================================================================" 1.44 + echo "Packages maintained by $1: $packages" 1.45 + echo "" ;; 1.46 usage|*) 1.47 # Print usage also for all unknown commands. 1.48 #