Changeset 1176 in ProjectBuilder for devel/pb/lib/ProjectBuilder/Env.pm


Ignore:
Timestamp:
Feb 7, 2011, 2:24:11 PM (13 years ago)
Author:
Bruno Cornec
Message:

r4160@eelzbach2: bruno | 2011-02-06 13:30:39 +0100

  • Adds support for Remote Machines (RM). Not tested yet.
File:
1 edited

Legend:

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

    r1156 r1176  
    9595# where to find Build System infos:
    9696#vmpath default = /home/qemu
    97 #vepath default = /home/rinse
     97#vepath default = /home/rpmbootstrap
     98#rmpath default = /home/remote
    9899
    99100# Overwrite generic setup
     
    168169# Adds a potential conf file now as it's less
    169170# important than the project conf file
    170 my ($vmpath,$vepath) = pb_conf_get_if("vmpath","vepath");
     171my ($vmpath,$vepath,$rmpath) = pb_conf_get_if("vmpath","vepath","rmpath");
    171172pb_conf_add("$vmpath->{$ENV{'PBPROJ'}}/.pbrc") if ((defined $vmpath) && (-f "$vmpath->{$ENV{'PBPROJ'}}/.pbrc"));
    172173pb_conf_add("$vepath->{$ENV{'PBPROJ'}}/.pbrc") if ((defined $vepath) && (-f "$vepath->{$ENV{'PBPROJ'}}/.pbrc"));
     174pb_conf_add("$rmpath->{$ENV{'PBPROJ'}}/.pbrc") if ((defined $rmpath) && (-f "$rmpath->{$ENV{'PBPROJ'}}/.pbrc"));
    173175
    174176#
     
    282284pb_log(2,"PBBUILDDIR: $ENV{'PBBUILDDIR'}\n");
    283285
    284 #
    285 # The following part is only useful when in cms2something or newsomething
    286 # In VMs/VEs we want to skip that by providing good env vars.
     286return if ($action =~ /^clean$/);
     287#
     288# The following part is only useful when in sbx|cms2something or newsomething
     289# In VMs/VEs/RMs we want to skip that by providing good env vars.
    287290# return values in that case are useless
    288291#
    289 return if ($action =~ /^clean$/);
    290292
    291293if (($action =~ /^cms2/) || ($action =~ /^sbx2/) || ($action =~ /^newver$/) || ($action =~ /pbinit/) || ($action =~ /^newproj$/) || ($action =~ /^announce/)) {
Note: See TracChangeset for help on using the changeset viewer.