build.pl (82d47efd) build.pl (790d3a29)
1:
2 eval 'exec perl -S $0 ${1+"$@"}'
3 if 0;
4#*************************************************************************
5#
6# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7#
8# Copyright 2000, 2010 Oracle and/or its affiliates.

--- 2303 unchanged lines hidden (view full) ---

2312 @modules_built = keys %$deps_hash;
2313 %add_to_config = %$deps_hash;
2314 if ($prepare) {
2315 if ((!(defined $ENV{UPDATER} && (!defined $ENV{CWS_WORK_STAMP}))) || (defined $ENV{CWS_WORK_STAMP})) {
2316 $source_config->add_active_modules([keys %add_to_config], 0);
2317 }
2318 clear_delivered();
2319 }
1:
2 eval 'exec perl -S $0 ${1+"$@"}'
3 if 0;
4#*************************************************************************
5#
6# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
7#
8# Copyright 2000, 2010 Oracle and/or its affiliates.

--- 2303 unchanged lines hidden (view full) ---

2312 @modules_built = keys %$deps_hash;
2313 %add_to_config = %$deps_hash;
2314 if ($prepare) {
2315 if ((!(defined $ENV{UPDATER} && (!defined $ENV{CWS_WORK_STAMP}))) || (defined $ENV{CWS_WORK_STAMP})) {
2316 $source_config->add_active_modules([keys %add_to_config], 0);
2317 }
2318 clear_delivered();
2319 }
2320 my $old_output_tree = '';
2320 my @old_output_trees = ();
2321 foreach $prj (sort keys %$deps_hash) {
2322 if ($prepare) {
2323 ensure_clear_module($prj);
2324 } else {
2325 next if ($show);
2326 if ($modules_types{$prj} ne 'mod') {
2327 push(@missing_modules, $prj);
2328 } elsif (-d $module_paths{$prj}. '/'. $ENV{INPATH}) {
2321 foreach $prj (sort keys %$deps_hash) {
2322 if ($prepare) {
2323 ensure_clear_module($prj);
2324 } else {
2325 next if ($show);
2326 if ($modules_types{$prj} ne 'mod') {
2327 push(@missing_modules, $prj);
2328 } elsif (-d $module_paths{$prj}. '/'. $ENV{INPATH}) {
2329 $old_output_tree++;
2329 push(@old_output_trees, $prj);
2330 };
2331 };
2332 };
2333 if (scalar @missing_modules) {
2334 my $warning_string = 'Following modules are inconsistent/missing: ' . "@missing_modules";
2335 push(@warnings, $warning_string);
2336 };
2337 if ($build_all_cont) {
2338 $$deps_hash{$build_all_cont} = ();
2339 $build_all_cont = '';
2340 };
2330 };
2331 };
2332 };
2333 if (scalar @missing_modules) {
2334 my $warning_string = 'Following modules are inconsistent/missing: ' . "@missing_modules";
2335 push(@warnings, $warning_string);
2336 };
2337 if ($build_all_cont) {
2338 $$deps_hash{$build_all_cont} = ();
2339 $build_all_cont = '';
2340 };
2341 if ($old_output_tree) {
2342 push(@warnings, 'Some module(s) contain old output tree(s)!');
2341 if( scalar @old_output_trees) {
2342 my $warning_string = 'Some modules contain old output trees! Please check: ' . "@old_output_trees";
2343 push(@warnings, $warning_string);
2343 };
2344 if (!$generate_config && scalar @warnings) {
2345 print "WARNING(S):\n";
2346 print STDERR "$_\n" foreach (@warnings);
2347 print "\nATTENTION: If you are performing an incompatible build, please break the build with Ctrl+C and prepare the workspace with \"--prepare\" switch!\n\n" if (!$prepare);
2348 sleep(10);
2349 };
2350 if ($prepare) {

--- 1199 unchanged lines hidden ---
2344 };
2345 if (!$generate_config && scalar @warnings) {
2346 print "WARNING(S):\n";
2347 print STDERR "$_\n" foreach (@warnings);
2348 print "\nATTENTION: If you are performing an incompatible build, please break the build with Ctrl+C and prepare the workspace with \"--prepare\" switch!\n\n" if (!$prepare);
2349 sleep(10);
2350 };
2351 if ($prepare) {

--- 1199 unchanged lines hidden ---