- Timestamp:
- Mar 12, 2011, 2:34:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r1255 r1259 756 756 757 757 # declare packager and repo for filtering 758 # TODO: Is pbrepo needed so early in the process ?759 758 my ($tmp1, $tmp2) = pb_conf_get("pbpackager","pbrepo"); 760 759 $ENV{'PBPACKAGER'} = $tmp1->{$ENV{'PBPROJ'}}; … … 1067 1066 pb_log(0,"No Build files found for ".join(',',sort(@notfound))."\n") if (@notfound); 1068 1067 1069 # Apply filters to the non-build files1070 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 aware1080 # Execute the pbinit script if any1081 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 delivery1089 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 }1096 1068 } else { 1097 1069 # Instead call News generation … … 1112 1084 close(SCRIPT); 1113 1085 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 } 1114 1114 } 1115 1115
Note:
See TracChangeset
for help on using the changeset viewer.