Changeset 18 in ProjectBuilder for devel/pb/lib/common.pm


Ignore:
Timestamp:
Jul 31, 2007, 12:50:36 AM (17 years ago)
Author:
Bruno Cornec
Message:

cms2build roughly working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/common.pm

    r17 r18  
    55# $Id$
    66#
    7 require Exporter;
    8 @ISA = qw(Exporter);
    9 @EXPORT = qw(env_init);
    107
     8use strict;
    119use lib qw (lib);
    1210use pb qw (pb_init);
    13 use strict;
    1411use File::Basename;
    1512use File::Path;
    1613use File::Temp qw /tempdir/;
    17 use vars qw (%defpkgdir %extpkgdir %version %param);
    1814use Data::Dumper;
    1915
     
    4339# Check content
    4440#
    45 if (not defined $param{"pbroot"}) {
    46     die "param pbroot doesn't exist in $ENV{'PBETC'}/$proj.pb";
     41if (not defined $confparam{"pbroot"}) {
     42    die "confparam pbroot doesn't exist in $ENV{'PBETC'}/$proj.pb";
    4743} else {
    48     $ENV{'PBROOT'} = $param{"pbroot"};
     44    $ENV{'PBROOT'} = $confparam{"pbroot"};
    4945}
    50 if (defined $param{"cvsroot"}) {
    51     $ENV{'CVSROOT'} = $param{"cvsroot"};
     46if (defined $confparam{"cvsroot"}) {
     47    $ENV{'CVSROOT'} = $confparam{"cvsroot"};
    5248}
    5349
Note: See TracChangeset for help on using the changeset viewer.