info-cvs
[Top][All Lists]
Advanced

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

Re: CVS bookmarker or addressbook


From: Manik Bafna
Subject: Re: CVS bookmarker or addressbook
Date: Tue, 29 May 2001 10:00:05 +0530

You may want to look into

http://sourceforge.net/projects/cvsbookmarks/

- Manik

Tracy Brown wrote:

> Christian,
>
> I'm not sure what it is you have in mind. Presumably you want to execute a
> little script of some kind and automatically log into some CVS server?
> Here's a little perl to do create a key/value pair with a project name and
> it's corresponding CVSROOT string. I don't do this sort of thing, but if it
> helps you... you'll need to extend the text file to incorporate passwords;
> or if you're using CVS 1.11.1p1 just include the password in the CVSROOT
> string (someone correct me if I'm wrong). You might need to modify this for
> your needs.
>
> ~/cvsroot.track (simple text file with key = value)
> --- a text file ---
> project = :pserver:user:address@hidden:/cvsroot
>
> --- a simple script ---
> #! /usr/local/bin/perl
>
> $HOME = "/home/user";
>
> my ($line, @project);
> open(FILEHANDLE, "${HOME}/cvsroot.track");
> while(<FILEHANDLE>)
> {
>         chop($line = $_);
>         $line =~ s/\s+//g;
>         @project=split(m/[=]/,$line);
>
>         # -- create %cvsroot_hash   -> binds cvsroot string with a key
>         $cvsroot_hash{$project[0]} = $project[1];
> };
> close(FILEHANDLE);
>
> # Do something with this
> # such as login, etc. I'm just printing here.
> while(($key,$value)=each %cvsroot_hash) {
>         print "$key = $value \n";
> }
>
> # Sample login -- just supply the project name as ARGV[0]
> # system( "/usr/local/bin/cvs -d $cvsroot_hash{$ARGV[0]} login" );
>
> --- end ---
>
> Cheers,
> Tracy.
>
> > -----Original Message-----
> > From: Christian Robottom Reis [mailto:address@hidden
> > Sent: Tuesday, May 22, 2001 12:08 PM
> > To: address@hidden
> > Subject: CVS bookmarker or addressbook
> >
> >
> >
> > Us people that delve in the maze of Free Software
> > repositories have one
> > task that's dull -- keeping track of the CVSROOT strings for
> > every project
> > we want to pull.
> >
> > Is there something shell-oriented that provides something like that? A
> > means to add and use root strings by a key or an index? This would be
> > quite useful, and I'm sure I'm not the only one looking. :-)
> >
> > 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
> >
>
> _______________________________________________
> 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]