=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/cvsd.conf.5,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/cvs/Attic/cvsd.conf.5 2004/07/25 03:23:58 1.1 +++ src/usr.bin/cvs/Attic/cvsd.conf.5 2004/08/03 14:47:30 1.2 @@ -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 .\" @@ -45,10 +45,25 @@ 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