build.pl (5def858f) build.pl (fad7b0c6)
1:
2 eval 'exec perl -S $0 ${1+"$@"}'
3 if 0;
4#**************************************************************
5#
6# Licensed to the Apache Software Foundation (ASF) under one
7# or more contributor license agreements. See the NOTICE file
8# distributed with this work for additional information

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

523 handle_dead_children(0);
524 };
525 delete $build_is_finished{$_} if defined $build_is_finished{$_};
526 delete $modules_with_errors{$_} if defined $modules_with_errors{$_};
527 delete $module_announced{$_};
528 initialize_html_info($_);
529
530 foreach my $waiter (keys %{$reversed_dependencies{$_}}) {
1:
2 eval 'exec perl -S $0 ${1+"$@"}'
3 if 0;
4#**************************************************************
5#
6# Licensed to the Apache Software Foundation (ASF) under one
7# or more contributor license agreements. See the NOTICE file
8# distributed with this work for additional information

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

523 handle_dead_children(0);
524 };
525 delete $build_is_finished{$_} if defined $build_is_finished{$_};
526 delete $modules_with_errors{$_} if defined $modules_with_errors{$_};
527 delete $module_announced{$_};
528 initialize_html_info($_);
529
530 foreach my $waiter (keys %{$reversed_dependencies{$_}}) {
531 # for rebuild_all_dependent - refacture "if" condition
531 # for rebuild_all_dependent - refactor "if" condition
532 ${$global_deps_hash{$waiter}}{$_}++ if (!defined $build_is_finished{$waiter});
533 };
534 delete $projects_deps_hash{$_} if defined $projects_deps_hash{$_};
535 my %single_module_dep_hash = ();
536 foreach my $module (keys %{$global_deps_hash_backup{$_}}) {
537 if (defined ${$global_deps_hash_backup{$_}}{$module} && (!defined $build_is_finished{$module})) {
538 $single_module_dep_hash{$module}++;
539 };

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

1430 print STDERR " --all - build all projects from very beginning till current one\n";
1431 print STDERR " --from - build all projects dependent from the specified (including it) till current one\n";
1432 print STDERR " --exclude_branch_from - exclude module(s) and its branch from the build\n";
1433 print STDERR " --mode OOo - build only projects needed for OpenOffice.org\n";
1434 print STDERR " --prepare - clear all projects for incompatible build from prj_name till current one [for platform] (cws version)\n";
1435 print STDERR " --with_branches- the same as \"--from\" but with build all projects in neighbour branches\n";
1436 print STDERR " --skip - do not build certain module(s)\n";
1437 print STDERR " --since - build all projects beginning from the specified till current one (the same as \"--all:prj_name\", but skipping prj_name)\n";
532 ${$global_deps_hash{$waiter}}{$_}++ if (!defined $build_is_finished{$waiter});
533 };
534 delete $projects_deps_hash{$_} if defined $projects_deps_hash{$_};
535 my %single_module_dep_hash = ();
536 foreach my $module (keys %{$global_deps_hash_backup{$_}}) {
537 if (defined ${$global_deps_hash_backup{$_}}{$module} && (!defined $build_is_finished{$module})) {
538 $single_module_dep_hash{$module}++;
539 };

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

1430 print STDERR " --all - build all projects from very beginning till current one\n";
1431 print STDERR " --from - build all projects dependent from the specified (including it) till current one\n";
1432 print STDERR " --exclude_branch_from - exclude module(s) and its branch from the build\n";
1433 print STDERR " --mode OOo - build only projects needed for OpenOffice.org\n";
1434 print STDERR " --prepare - clear all projects for incompatible build from prj_name till current one [for platform] (cws version)\n";
1435 print STDERR " --with_branches- the same as \"--from\" but with build all projects in neighbour branches\n";
1436 print STDERR " --skip - do not build certain module(s)\n";
1437 print STDERR " --since - build all projects beginning from the specified till current one (the same as \"--all:prj_name\", but skipping prj_name)\n";
1438 print STDERR " --checkmodules - check if all required parent projects are availlable\n";
1438 print STDERR " --checkmodules - check if all required parent projects are available\n";
1439 print STDERR " --show - show what is going to be built\n";
1440 print STDERR " --file - generate command file file_name\n";
1441 print STDERR " --deliver - only deliver, no build (usable for \'-all\' and \'-from\' keys)\n";
1442 print STDERR " -P - start multiprocessing build, with number of processes passed\n";
1443 print STDERR " --server - start build in server mode (clients required)\n";
1444 print STDERR " --setenvstring - string for configuration of the client environment\n";
1445 print STDERR " --port - set server port, default is 7890. You may pass several ports, the server will be started on the first available\n";
1446 print STDERR " otherwise the server will be started on first available port from the default range 7890-7894\n";

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

2700 rmdir(correct_path($tmp_dir)) if ($tmp_dir);
2701 }
2702 rmtree(correct_path($tmp_dir), 0, 0) if ($tmp_dir);
2703 print STDERR "Cannot delete $tmp_dir. Please remove it manually\n" if (-d $tmp_dir);
2704 exit($exit_code);
2705};
2706
2707#
1439 print STDERR " --show - show what is going to be built\n";
1440 print STDERR " --file - generate command file file_name\n";
1441 print STDERR " --deliver - only deliver, no build (usable for \'-all\' and \'-from\' keys)\n";
1442 print STDERR " -P - start multiprocessing build, with number of processes passed\n";
1443 print STDERR " --server - start build in server mode (clients required)\n";
1444 print STDERR " --setenvstring - string for configuration of the client environment\n";
1445 print STDERR " --port - set server port, default is 7890. You may pass several ports, the server will be started on the first available\n";
1446 print STDERR " otherwise the server will be started on first available port from the default range 7890-7894\n";

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

2700 rmdir(correct_path($tmp_dir)) if ($tmp_dir);
2701 }
2702 rmtree(correct_path($tmp_dir), 0, 0) if ($tmp_dir);
2703 print STDERR "Cannot delete $tmp_dir. Please remove it manually\n" if (-d $tmp_dir);
2704 exit($exit_code);
2705};
2706
2707#
2708# Procedure sorts module in user-frendly order
2708# Procedure sorts module in user-friendly order
2709#
2710sub sort_modules_appearance {
2711 foreach (keys %dead_parents) {
2712 delete $build_is_finished{$_} if (defined $build_is_finished{$_});
2713 delete $build_in_progress{$_} if (defined $build_in_progress{$_});
2714 };
2715 foreach (keys %build_is_finished) {
2716 delete $build_in_progress{$_} if (defined $build_in_progress{$_});

--- 852 unchanged lines hidden ---
2709#
2710sub sort_modules_appearance {
2711 foreach (keys %dead_parents) {
2712 delete $build_is_finished{$_} if (defined $build_is_finished{$_});
2713 delete $build_in_progress{$_} if (defined $build_in_progress{$_});
2714 };
2715 foreach (keys %build_is_finished) {
2716 delete $build_in_progress{$_} if (defined $build_in_progress{$_});

--- 852 unchanged lines hidden ---