ProjectBuilder::CMS, part of the project-builder.org
This modules provides configuration management system functions suitable for pbinit calls.
This function setup the environment for the CMS system related to the URL given by the pburl configuration parameter. The potential parameter indicates whether we should inititate the context or not. It sets up environement variables (PBPROJDIR, PBDIR, PBREVISION, PBCMSLOGFILE)
This function exports a CMS content to a directory. The first parameter is the URL of the CMS content. The second parameter is the directory in which it is locally exposed (result of a checkout). If undef, then use the original CMS content. The third parameter is the directory where we want to deliver it (result of export). It returns the original tar file if we need to preserve it and undef if we use the produced one.
This function is only called with a real CMS system and gives the URL stored in the checked out directory. The first parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...) The second parameter is the directory in which it is locally exposed (result of a checkout).
This function copies a CMS content to another. The first parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...) The second parameter is the URL of the original CMS content. The third parameter is the URL of the destination CMS content.
Only coded for SVN now as used for pbconf itself not the project
This function checks a CMS content out to a directory. The first parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...) The second parameter is the URL of the CMS content. The third parameter is the directory where we want to deliver it (result of export).
This function updates a local directory with the CMS content. The first parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...) The second parameter is the directory to update.
This function updates a CMS content from a local directory. The first parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...) The second parameter is the directory to update from. The third parameter indicates if we are in a new version creation (undef) or in a new project creation (1)
This function adds to a CMS content from a local directory. The first parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...) The second parameter is the directory/file to add.
This function returns a integer indicating the number f differences between the CMS content and the local directory where it's checked out. The first parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...) The second parameter is the directory to consider.
This function returns the list of packages we are working on in a CMS action. The first parameter is the default list of packages from the configuration file. The second parameter is the optional list of packages from the configuration file.
This function returns the real name of a virtual package we are working on in a CMS action. It supports the following types: perl. The first parameter is the virtual package name
This function checks the compliance of the project and the pbconf directory. The first parameter is the key name of the value that needs to be read in the configuration file. The second parameter is the environment variable this key will populate. The third parameter is the location of the pbconf dir. The fourth parameter is the URI of the CMS content related to the pbconf dir. The fifth parameter indicates whether we should inititate the context or not.
This function creates a AUTHORS files for the project. It call it AUTHORS.pb if an AUTHORS file already exists. The first parameter is the source file for authors information. The second parameter is the directory where to create the final AUTHORS file. The third parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...)
This function creates a ChangeLog file for the project. The first parameter is the schema of the CMS systems (svn, cvs, svn+ssh, ...) The second parameter is the directory where the CMS content was checked out. The third parameter is the directory where to create the final ChangeLog file. The fourth parameter is unused. The fifth parameter is the source file for authors information.
It may use a tool like svn2cl or cvs2cl to generate it if present, or the log file from the CMS if not.
The main Web site of the project is available at http://www.project-builder.org/. Bug reports should be filled using the trac instance of the project at http://trac.project-builder.org/.
None exists for the moment.
The Project-Builder.org team http://trac.project-builder.org/ lead by Bruno Cornec mailto:bruno@project-builder.org.
Project-Builder.org is distributed under the GPL v2.0 license described in the file COPYING included with the distribution.
COPYING
To install ProjectBuilder::Env, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ProjectBuilder::Env
CPAN shell
perl -MCPAN -e shell install ProjectBuilder::Env
For more information on module installation, please visit the detailed CPAN module installation guide.