Here's a little one liner that will give you a list of modules using the
history file - it's probably not a definitive list, but then again I don't
really ever use the history file much:

cvs -q history | nawk '{ if ($7 ~ /^[A-Za-z1-9].*/) print $7 }' | sort -u


If you want to be able to select one for checkout, just through it into a
ksh script:

### a ksh menu script ###
#! /usr/bin/ksh

integer i=0
for item in $(cvs -q history | nawk '{ if ($7 ~ /^[A-Za-z1-9].*/) print $7
}' | sort -u)
{
        item_array[i]=$item
        i=$(( ${i} + 1 ))
}; unset i


integer i=0
integer j=$(( ${#item_array[@]} - 1 ))
while (( ${i} <= ${j} ))
do
        print "${i}) ${item_array[i]}"
        i=$(( ${i} + 1 ))
done

print -n "Enter module to checkout: "
read SELECTION

cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot co ${SELECTION}

exit 0

-- end --

Cheers,
Tracy.

> -----Original Message-----
> From: Christian Robottom Reis [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 10:41 AM
> To: Andy Nuss
> Cc: [EMAIL PROTECTED]
> Subject: Re: list modules
> 
> 
> On Sun, 20 May 2001, Andy Nuss wrote:
> 
> > 1. list modules on server,
> > 2. choose the module I want,
> 
> AFAICS this _is_ obtainable using 'cvs history', but it seems 
> like a hack.
> I don't know if anybody has a better solution, though.
> 
> Take care,
> --
> /\/\ Christian Reis, Senior Engineer, Async Open Source, Brazil
> ~\/~ http://async.com.br/~kiko/ | [+55 16] 274 4311
> 
> 
> _______________________________________________
> Info-cvs mailing list
> [EMAIL PROTECTED]
> http://mail.gnu.org/mailman/listinfo/info-cvs
> 

_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to