Ignore:
Timestamp:
Sep 4, 2007, 10:14:02 AM (12 years ago)
Author:
bruno
Message:

Preparing work on VM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/lib/ProjectBuilder/Base.pm

    r101 r105  
    8282    # Valid version names (optional)
    8383    # List of files to filter (optional)
    84     my ($defpkgdir, $extpkgdir, $version, $filteredfiles) = pb_conf_read("$ENV{'PBCONF'}/$proj.pb","defpkgdir","extpkgdir","version","filteredfiles");
     84    my ($defpkgdir, $extpkgdir, $version, $filteredfiles, $pkgv, $pkgt) = pb_conf_read("$ENV{'PBCONF'}/$proj.pb","defpkgdir","extpkgdir","version","filteredfiles","projver","projtag");
    8585    print "DEBUG: defpkgdir: ".Dumper($defpkgdir)."\n" if ($debug >= 1);
    8686    print "DEBUG: extpkgdir: ".Dumper($extpkgdir)."\n" if ($debug >= 1);
     
    103103
    104104#
    105 # Set temp directory
    106 #
    107 if (not defined $ENV{'TMPDIR'}) {
    108     $ENV{'TMPDIR'}="/tmp";
    109 }
    110 $ENV{'PBTMP'} = tempdir( "pb.XXXXXXXXXX", DIR => $ENV{'TMPDIR'}, CLEANUP => 1 );
    111 
    112 #
    113105# Get global Version/Tag
    114106#
    115 my ($pkgv, $pkgt) = pb_conf_read("$ENV{'PBCONF'}/$proj.pb","projver","projtag");
    116107
    117108if (not defined $ENV{'PBVER'}) {
     
    132123}
    133124die "Invalid tag name $ENV{'PBTAG'} in $ENV{'PBCONF'}/$proj.pb" if ($ENV{'PBTAG'} !~ /[0-9.]+/);
     125
     126#
     127# Set temp directory
     128#
     129if (not defined $ENV{'TMPDIR'}) {
     130    $ENV{'TMPDIR'}="/tmp";
     131}
     132$ENV{'PBTMP'} = tempdir( "pb.XXXXXXXXXX", DIR => $ENV{'TMPDIR'}, CLEANUP => 1 );
    134133
    135134#
Note: See TracChangeset for help on using the changeset viewer.