Changeset 1259


Ignore:
Timestamp:
03/12/11 14:34:00 (2 years ago)
Author:
bruno
Message:
  • Fix #92 as well as documentation generation which was also broken (linufr.org report)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1255 r1259  
    756756 
    757757    # declare packager and repo for filtering 
    758     # TODO: Is pbrepo needed so early in the process ? 
    759758    my ($tmp1, $tmp2) = pb_conf_get("pbpackager","pbrepo"); 
    760759    $ENV{'PBPACKAGER'} = $tmp1->{$ENV{'PBPROJ'}}; 
     
    10671066            pb_log(0,"No Build files found for ".join(',',sort(@notfound))."\n") if (@notfound); 
    10681067 
    1069             # Apply filters to the non-build files 
    1070             my $liste =""; 
    1071             if (defined $filteredfiles->{$pbpkg}) { 
    1072                 foreach my $f (split(/,/,$filteredfiles->{$pbpkg})) { 
    1073                     pb_filter_file_inplace($ptr,"$dest/$f",$pb); 
    1074                     $liste = "$f $liste"; 
    1075                 } 
    1076             } 
    1077             pb_log(2,"Files ".$liste."have been filtered\n"); 
    1078  
    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  
    1087             # Do we have additional script to run to prepare the environement for the project ?  
    1088             # Then include it in the pbconf delivery 
    1089             foreach my $pbvf (<$ENV{'PBROOTDIR'}/pbv*.pre>,<$ENV{'PBROOTDIR'}/pbv*.post>, <$ENV{'PBROOTDIR'}/pbtest*>) { 
    1090                 if (-x "$pbvf") { 
    1091                     my $target = "$ENV{'PBDESTDIR'}/".basename($pbvf); 
    1092                     pb_filter_file("$pbvf",$ptr,$target,$pb); 
    1093                     chmod 0755,"$target"; 
    1094                 } 
    1095             } 
    10961068        } else { 
    10971069            # Instead call News generation 
     
    11121084            close(SCRIPT); 
    11131085            chmod 0755,"$ENV{'PBTMP'}/pbscript"; 
     1086        } 
     1087 
     1088        # Apply filters to the non-build files 
     1089        my $liste =""; 
     1090        if (defined $filteredfiles->{$pbpkg}) { 
     1091            foreach my $f (split(/,/,$filteredfiles->{$pbpkg})) { 
     1092                pb_filter_file_inplace($ptr,"$dest/$f",$pb); 
     1093                $liste = "$f $liste"; 
     1094            } 
     1095        } 
     1096        pb_log(2,"Files ".$liste."have been filtered\n"); 
     1097 
     1098        # TODO: Make it CMS aware 
     1099        # Execute the pbinit script if any 
     1100        if (-x "$ENV{'PBROOTDIR'}/$pbpkg/pbinit") { 
     1101            pb_filter_file("$ENV{'PBROOTDIR'}/$pbpkg/pbinit",$ptr,"$ENV{'PBTMP'}/pbinit",$pb); 
     1102            chmod 0755,"$ENV{'PBTMP'}/pbinit"; 
     1103            pb_system("cd $dest ; $ENV{'PBTMP'}/pbinit","Executing init script from $ENV{'PBROOTDIR'}/$pbpkg/pbinit under $dest","verbose"); 
     1104        } 
     1105 
     1106        # Do we have additional script to run to prepare the environement for the project ?  
     1107        # Then include it in the pbconf delivery 
     1108        foreach my $pbvf (<$ENV{'PBROOTDIR'}/pbv*.pre>,<$ENV{'PBROOTDIR'}/pbv*.post>, <$ENV{'PBROOTDIR'}/pbtest*>) { 
     1109            if (-x "$pbvf") { 
     1110                my $target = "$ENV{'PBDESTDIR'}/".basename($pbvf); 
     1111                pb_filter_file("$pbvf",$ptr,$target,$pb); 
     1112                chmod 0755,"$target"; 
     1113            } 
    11141114        } 
    11151115 
Note: See TracChangeset for help on using the changeset viewer.