diff options
author | peter <peter@FreeBSD.org> | 1995-12-10 22:31:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1995-12-10 22:31:43 +0000 |
commit | a68795603cd40b2007e36de454c9febe3c3dcdc9 (patch) | |
tree | 63f9beaa1782d6e637d09a724b065db0bbb6546f /gnu/usr.bin/cvs/examples | |
parent | ccae5414a484d778f5104d1e623758d93f977dee (diff) | |
parent | 2dbe609ba8a4cefd78f3867f74b53b3a507b9883 (diff) | |
download | FreeBSD-src-a68795603cd40b2007e36de454c9febe3c3dcdc9.zip FreeBSD-src-a68795603cd40b2007e36de454c9febe3c3dcdc9.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r12750,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'gnu/usr.bin/cvs/examples')
-rw-r--r-- | gnu/usr.bin/cvs/examples/checkoutlist | 20 | ||||
-rw-r--r-- | gnu/usr.bin/cvs/examples/cvswrappers | 29 | ||||
-rw-r--r-- | gnu/usr.bin/cvs/examples/rcstemplate | 7 | ||||
-rw-r--r-- | gnu/usr.bin/cvs/examples/taginfo | 25 | ||||
-rw-r--r-- | gnu/usr.bin/cvs/examples/unwrap | 21 | ||||
-rw-r--r-- | gnu/usr.bin/cvs/examples/wrap | 21 |
6 files changed, 123 insertions, 0 deletions
diff --git a/gnu/usr.bin/cvs/examples/checkoutlist b/gnu/usr.bin/cvs/examples/checkoutlist new file mode 100644 index 0000000..45ee6dc --- /dev/null +++ b/gnu/usr.bin/cvs/examples/checkoutlist @@ -0,0 +1,20 @@ +# +#ident "@(#)cvs/examples:$Name: $:$Id: checkoutlist,v 1.2 1995/11/14 23:24:49 woods Exp $" +# +# The "checkoutlist" file is used to support additional version controlled +# administrative files in $CVSROOT/CVSROOT, such as template files. +# +# The first entry on a line is a filename which will be checked out from +# the corresponding RCS file in the $CVSROOT/CVSROOT directory. +# The remainder of the line is an error message to use if the file cannot +# be checked out. +# +# File format: +# +# [<whitespace>]<filename><whitespace><error message><end-of-line> +# +# comment lines begin with '#' +# +rcstemplate +wrap +unwrap diff --git a/gnu/usr.bin/cvs/examples/cvswrappers b/gnu/usr.bin/cvs/examples/cvswrappers new file mode 100644 index 0000000..c666292 --- /dev/null +++ b/gnu/usr.bin/cvs/examples/cvswrappers @@ -0,0 +1,29 @@ +# +#ident "@(#)cvs/examples:$Name: $:$Id: cvswrappers,v 1.3 1995/11/14 23:23:11 woods Exp $" +# +# This file describes wrappers and other binary files to CVS. +# +# Wrappers are the concept where directories of files are to be +# treated as a single file. The intended use is to wrap up a wrapper +# into a single tar such that the tar archive 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 from merging these files. +# +# 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 +# +# and value is a single-quote delimited value. +# +# +*.nib -f '$CVSROOT/CVSROOT/unwrap %s' -t '$CVSROOT/CVSROOT/wrap %s %s' +*.rtfd -f '$CVSROOT/CVSROOT/unwrap %s' -t '$CVSROOT/CVSROOT/wrap %s %s' +*.draw -f '$CVSROOT/CVSROOT/unwrap %s' -t '$CVSROOT/CVSROOT/wrap %s %s' +*.tiff -m 'COPY' diff --git a/gnu/usr.bin/cvs/examples/rcstemplate b/gnu/usr.bin/cvs/examples/rcstemplate new file mode 100644 index 0000000..c9a2d1e --- /dev/null +++ b/gnu/usr.bin/cvs/examples/rcstemplate @@ -0,0 +1,7 @@ +CVS: +CVS: WARNING: You are commiting a change to the main source repository. +CVS: +CVS: This change will be immediately available to all other users +CVS: of this repository! Please be sure your changes have been +CVS: adequately tested. +CVS: diff --git a/gnu/usr.bin/cvs/examples/taginfo b/gnu/usr.bin/cvs/examples/taginfo new file mode 100644 index 0000000..02de62b --- /dev/null +++ b/gnu/usr.bin/cvs/examples/taginfo @@ -0,0 +1,25 @@ +# +#ident "@(#)cvs/examples:$Name: $:$Id: taginfo,v 1.3 1995/11/14 23:27:52 woods Exp $" +# +# The "taginfo" file is used to control pre-tag checks. +# The filter on the right is invoked with the following arguments: +# +# $1 -- tagname +# $2 -- operation "add" for tag, "mov" for tag -F, and "del" for tag -d +# $3 -- repository +# $4-> file revision [file revision ...] +# +# A non-zero exit of the filter program will cause the tag to be aborted. +# +# The first entry on a line is a regular expression which is tested +# against the directory that the change is being committed to, relative +# to the $CVSROOT. For the first match that is found, then the remainder +# of the line is the name of the filter to run. +# +# If the repository name does not match any of the regular expressions in this +# file, the "DEFAULT" line is used, if it is specified. +# +# If the name "ALL" appears as a regular expression it is always used +# in addition to the first matching regex or "DEFAULT". +# +DEFAULT $CVSROOT/CVSROOT/tag_logging_program diff --git a/gnu/usr.bin/cvs/examples/unwrap b/gnu/usr.bin/cvs/examples/unwrap new file mode 100644 index 0000000..def0561 --- /dev/null +++ b/gnu/usr.bin/cvs/examples/unwrap @@ -0,0 +1,21 @@ +#! /bin/sh +# +# unwrap - extract the combined package (created with wrap) +# +#ident "@(#)cvs/examples:$Name: $:$Id: unwrap,v 1.1 1995/11/14 23:20:30 woods Exp $" + +# move the file to a new name with an extension +rm -rf $1.cvswrap +mv $1 $1.cvswrap + +# untar the file + +if `gzip -t $1.cvswrap > /dev/null 2>&1` +then + gzcat -d $1.cvswrap | gnutar --preserve --sparse -x -f - +else + gnutar --preserve --sparse -x -f $1.cvswrap +fi + +# remove the original +rm -rf $1.cvswrap diff --git a/gnu/usr.bin/cvs/examples/wrap b/gnu/usr.bin/cvs/examples/wrap new file mode 100644 index 0000000..b6a6a77 --- /dev/null +++ b/gnu/usr.bin/cvs/examples/wrap @@ -0,0 +1,21 @@ +#! /bin/sh +# +# wrap - Combine a directory into a single tar package. +# +#ident "@(#)cvs/examples:$Name: $:$Id: wrap,v 1.1 1995/11/14 23:20:32 woods Exp $" + +# This script is always called with the current directory set to +# where the file to be combined exists. but i may get called with a +# path to where cvs first started executing. (this probably should be +# fixed in cvs) so strip out all of the directory information. The +# first sed expression will only work if the path has a leading / +# if it doesn't the one in the if statement will work. +DIRNAME=`echo $1 | sed -e "s|/.*/||g"` +if [ ! -d $DIRNAME ] ; then + DIRNAME=`echo $1 | sed -e "s|.*/||g"` +fi +# +# Now tar up the directory but we now will only get a relative path +# even if the user did a cvs commit . at the top. +# +gnutar --preserve --sparse -cf - $DIRNAME | gzip --no-name --best -c > $2 |