Date: Sun, 20 May 2001 03:30:58 -0700 (PDT) From: Josef Karthauser <joe@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: CVSROOT cfg.pm checkoutlist Message-ID: <200105201030.f4KAUxW61237@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
joe 2001/05/20 03:30:58 PDT
Modified files:
. checkoutlist
Added files:
. cfg.pm
Log:
Add a configuration file for customising the perl scripts. To use
it put the following at the top of the perl script:
use lib $ENV{CVSROOT};
use CVSROOT::cfg;
The config variables can then be referenced from the script by
refering to them in the cfg package space, i.e. $cfg::TEMPLATE_HEADER.
The choice was taken to write it in perl, instead of plain text,
because it saves extra code in each script to parse the file, and
additionally it allows the user extra flexibility enabling the user
to create a dynamic configuration file that depends upon the host
it's running on, for instance.
Please read the warning in the file about making sure that it passes
the perl syntax check (perl -c) before commiting updates to it.
Revision Changes Path
1.9 +2 -1 CVSROOT/checkoutlist
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105201030.f4KAUxW61237>
