info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: list modules


From: Tracy Brown
Subject: RE: list modules
Date: Tue, 22 May 2001 13:51:59 -0700

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=$(( address@hidden - 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:address@hidden:/cvsroot co ${SELECTION}

exit 0

-- end --

Cheers,
Tracy.

> -----Original Message-----
> From: Christian Robottom Reis [mailto:address@hidden
> Sent: Tuesday, May 22, 2001 10:41 AM
> To: Andy Nuss
> Cc: address@hidden
> 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
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]