[cvsnt] File to specify import options?

Mike Wake mike.wake at thales-tts.com
Mon Mar 22 11:24:22 GMT 2004


Bo,

I have the following line in my CVSROOT/cvswrappers file to deal with 
pdf files.  It supplies the default rcs option on import or add for 
files with the extension *.pdf

*.pdf -k 'b'

It appears you can also have a .cvswrappers file just like a .cvsignore 
if you
want to.

The wrapper.c file in the source code begins with the following explaination
and example.

<snip>
/*
  Original Author:  athan at morgan.com <Andrew C. Athan> 2/1/94
  Modified By:      vdemarco at bou.shl.com

  This package was written to support the NEXTSTEP concept of
  "wrappers."  These are essentially directories that are to be
  treated as "files."  This package allows such wrappers to be
  "processed" on the way in and out of CVS.  The intended use is to
  wrap up a wrapper into a single tar, such that that tar can be
  treated as a single binary file in CVS.  To solve the problem
  effectively, it was also necessary to be able to prevent rcsmerge
  application at appropriate times.

  ------------------
  Format of wrapper file ($CVSROOT/CVSROOT/cvswrappers or .cvswrappers)

  wildcard    [option value][option value]...

  where option is one of
  -f        from cvs filter        value: path to filter
  -t        to cvs filter        value: path to filter
  -m        update methodology    value: MERGE or COPY
  -k        default -k rcs option to use on import or add

  and value is a single-quote delimited value.

  E.g:
  *.nib        -f 'gunzipuntar' -t 'targzip' -m 'COPY'
*/
</snip>

cheers
Mikew



More information about the cvsnt mailing list