[EMAIL PROTECTED] wrote:
> Is there a CVS command that I can issue that will give me the top-level
> directory from within /home/tabi/1639/source? That is, something like:
>
> [tabi: ~/1639/source] cvs query directory
> /home/tabi/1639
> [tabi: ~/1639/source]
>
> The reason I do this is that I create a sandbox for each bug that I
> work on, and I often work on several bugs at once. In this case, I'm
> working on bug 1639. I would like to write some shell scripts that
> need to know where the top level directory of my sandbox is. I've
> search the Internet and the man pages, and I see no way to do this.
Here are shell hacks that seem to do what you want:
sh: ( basename `cat CVS/Repository` > XX$$ ; XX=`cat XX$$` ; pwd | sed "s/$XX.*//" )
csh: ( basename `cat CVS/Repository` > XX$$ ; setenv XX `cat XX$$` ; pwd | sed "s/$XX.*//" )
_______________________________________________ Info-cvs mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/info-cvs
