Changeset 1225 in ProjectBuilder for devel/pb/bin


Ignore:
Timestamp:
Feb 26, 2011, 7:01:37 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • postpone execution of pbinit after all files have been filtered so that e.g. a configure.in be filtered before a bootstrap script being executed and all variables expanded correctly. Case of MondoRescue
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1221 r1225  
    892892        my $ptr = pb_get_filters($pbpkg);
    893893
    894         # TODO: Make it CMS aware
    895         # Execute the pbinit script if any
    896         if (-x "$ENV{'PBROOTDIR'}/$pbpkg/pbinit") {
    897             pb_filter_file("$ENV{'PBROOTDIR'}/$pbpkg/pbinit",$ptr,"$ENV{'PBTMP'}/pbinit",$pb);
    898             chmod 0755,"$ENV{'PBTMP'}/pbinit";
    899             pb_system("cd $dest ; $ENV{'PBTMP'}/pbinit","Executing init script from $ENV{'PBROOTDIR'}/$pbpkg/pbinit","verbose");
    900         }
    901 
    902894        # Do not do that for website
    903895        if (not defined $web) {
     
    10851077            pb_log(2,"Files ".$liste."have been filtered\n");
    10861078
     1079            # TODO: Make it CMS aware
     1080            # Execute the pbinit script if any
     1081            if (-x "$ENV{'PBROOTDIR'}/$pbpkg/pbinit") {
     1082                pb_filter_file("$ENV{'PBROOTDIR'}/$pbpkg/pbinit",$ptr,"$ENV{'PBTMP'}/pbinit",$pb);
     1083                chmod 0755,"$ENV{'PBTMP'}/pbinit";
     1084                pb_system("cd $dest ; $ENV{'PBTMP'}/pbinit","Executing init script from $ENV{'PBROOTDIR'}/$pbpkg/pbinit under $dest","verbose");
     1085            }
     1086
    10871087            # Do we have additional script to run to prepare the environement for the project ?
    10881088            # Then include it in the pbconf delivery
Note: See TracChangeset for help on using the changeset viewer.