bug-global
[Top][All Lists]
Advanced

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

Re: Improved viewcvs/cvsweb link with modules


From: Hideki IWAMOTO
Subject: Re: Improved viewcvs/cvsweb link with modules
Date: Fri, 25 Aug 2006 00:43:19 +0900

On Fri, 11 Aug 2006 12:20:49 +0900, Shigio YAMAGUCHI wrote...
> > viewcvs ()
> > {
> >     file=$1;
> >     dir=$(dirname $file);
> >     if [[ -d $dir/CVS ]]; then
> >         echo $VIEWCVS_BASE_URL/`cat $dir/CVS/Repository`/$(basename $file);
> >     else
> >         echo No CVS in $dir;
> >     fi
> > }
> >
> > Do you think there is some possibility that this improved creation of 
> > viewcvs-URLs
> > will go into the htags source?
> 
> I agree with you.
> When CVS directory exists, htags should follow your way.

I made a patch for this function.
When $dir/CVS/Repository does not exist, this is compatible with previous 
version.

Example
  (cvs co global && cd global && htags -g 
--cvsweb=http://cvs.savannah.gnu.org/viewcvs/ --cvsweb-cvsroot=global)
  (tar zxf global-5.2.tar.gz && cd global-5.2 && htags -g 
--cvsweb=http://cvs.savannah.gnu.org/viewcvs/global/ --cvsweb-cvsroot=global)

----
Hideki IWAMOTO  address@hidden

Attachment: cvslink.patch
Description: Binary data


reply via email to

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