summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-03 14:47:31 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-08-03 14:47:31 +0000
commit2ef2ef8277ff8fa75fecc3bf1c9a6eb7fd3e697d (patch)
treebfa2e38ad719e6b38a5342f19e0f765994abeebb
parent444dfc11fba34957a67d0bd76456a82b3d4fe0fe (diff)
Add a section for macros
-rw-r--r--usr.bin/cvs/cvsd.conf.519
1 files changed, 17 insertions, 2 deletions
diff --git a/usr.bin/cvs/cvsd.conf.5 b/usr.bin/cvs/cvsd.conf.5
index 07f9c1020d9..8c0994db089 100644
--- a/usr.bin/cvs/cvsd.conf.5
+++ b/usr.bin/cvs/cvsd.conf.5
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cvsd.conf.5,v 1.1 2004/07/25 03:23:58 jfb Exp $
+.\" $OpenBSD: cvsd.conf.5,v 1.2 2004/08/03 14:47:30 jfb Exp $
.\"
.\" Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
.\"
@@ -45,10 +45,25 @@ to control operations on the repository.
Comments can be inserted anywhere in the file by putting a '#' character
before them and span to the end of the line.
.Pp
+.Sh MACROS
To simplify maintenance of the configuration, the format allows for the
definition of variables that can later be used for interpolation throughout
the configuration file by preceding them with the '$' character.
-These variables are refered to as macros.
+These variables are refered to as macros throughout the rest of the document.
+A macro name must start with a letter and can be composed of letters, digits
+and underscores.
+.Pp
+Here is an example of macro usage:
+.Bd -literal -offset indent
+rootdir = /usr/local/cvs
+
+cvsroot $rootdir
+
+reqsock $rootdir/CVSROOT/cvsd.sock
+.Ed
+.Pp
+To assign a value containing spaces to a macro, the whole value string must
+be quoted using double quotes.
.Sh DIRECTIVES
The following directives are supported by the server:
.Bl -tag -width xxxxx