From owner-cvs-all Sun May 20 3:31: 5 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 35F0B37B424; Sun, 20 May 2001 03:30:59 -0700 (PDT) (envelope-from joe@FreeBSD.org) Received: (from joe@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4KAUxW61237; Sun, 20 May 2001 03:30:59 -0700 (PDT) (envelope-from joe) Message-Id: <200105201030.f4KAUxW61237@freefall.freebsd.org> From: Josef Karthauser Date: Sun, 20 May 2001 03:30:58 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: CVSROOT cfg.pm checkoutlist X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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