Skip Menu |

This queue is for tickets about the PerlBuildSystem CPAN distribution.

Report information
The Basics
Id: 15041
Status: resolved
Worked: 5 min
Priority: 0/
Queue: PerlBuildSystem

People
Owner: Nobody in particular
Requestors: emil.jansson [...] obigo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: New PBSLib\Configs\ConfigureProject.pm
use strict ; use warnings ; #------------------------------------------------------------------------------- my $project_config = GetConfig("PROJECT_CONFIG") ; my (undef, $file, $line) = caller(2) ; if(defined $project_config && 'HASH' eq ref $project_config) { unless (GetConfig('PROJECT_CONFIGURED')) { eval {PbsUse($project_config->{CONFIGURATION}) ;} ; if($@) { die ERROR ("Error while loading project configuration '$project_config->{CONFIGURATION}' at $file:$line:\n $@") ; } } eval {PbsUse($project_config->{RULES}) ;} ; if($@) { die ERROR ("Error while loading project rules '$project_config->{RULES}' at $file:$line:\n $@") ; } AddConfig('PROJECT_CONFIGURED' => 1); } else { die ERROR("Error loading project configuration: variable 'PROJECT_CONFIG' is not set properly at $file:$line.\n") ; } #------------------------------------------------------------------------------- 1 ;
I added the new set of configuring a project to the PBS distribution under the name Configs/ConfigureProjectVariablesAndRules.pm It's a very specific way of configuring a project and I don't want to force any "standar" way of doing that. The module name is a mouthfull so I recommend putting it in your projects PBSLib and call it whatever you wish.