Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Sep 2008 10:16:53 +0530
From:      "N. Raghavendra" <raghu@mri.ernet.in>
To:        Polytropon <freebsd@edvax.de>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD CVS tag
Message-ID:  <86zlm7js5e.fsf@riemann.mri.ernet.in>
In-Reply-To: <20080915163116.b46f2b2a.freebsd@edvax.de> (Polytropon's message of "Mon, 15 Sep 2008 16:31:16 %2B0200")
References:  <20080915163116.b46f2b2a.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
At 2008-09-15T16:31:16+02:00, Polytropon wrote:

> 1. How is it possible to include a sub-path in the CVS file field, but
>    not the absolute path of the file?

Use the `CVSHeader' keyword instead of `Header'.  The CVSHeader
keyword expands to the relative path of the file in the CVS
repository.  See the CVS manual at
http://cvsman.com/cvs-1.12.12/cvs_100.php

> 2. How is it possible to change $Id$ or $Header$ to a custom string,
>    let's say the name of a company or a project, by not breaking (!)
>    the CVS compatibility (no s/Header/Foobar/).
>
> Example for goal:
>
> 	$StupidProject: src/mouse/beep.pl,v 1.2.4 2008/16/32 04:08:16 bob Exp $

CVS checkout `CVSROOT'.  Create a file called `options' in the working
copy of CVSROOT with the following contents:

tag=StupidProject=CVSHeader
tagexpand=iStupidProject

CVS add and commit `options'.  Now, only the `StupidProject' keyword
will be expanded, leaving other keywords unexpanded.  See:

http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/CVSROOT/options

http://dotat.at/writing/cvs-guidelines.html

Raghu.

-- 
N. Raghavendra <raghu@mri.ernet.in> | http://www.retrotexts.net/
Harish-Chandra Research Institute   | http://www.mri.ernet.in/
See message headers for contact and OpenPGP information.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86zlm7js5e.fsf>