diff --git a/tools/module-deps/bootstrap.pl b/tools/module-deps/bootstrap.pl index 7d642be68b0a..e10831fb6862 100755 --- a/tools/module-deps/bootstrap.pl +++ b/tools/module-deps/bootstrap.pl @@ -37,7 +37,7 @@ my $debug = 1; sub PrintUsage { die < \$root_modules, - 'skip-cvs' => \$skip_cvs); + PrintUsage() if !GetOptions('module=s' => \$root_modules, + 'modules=s' => \$root_modules, + 'skip-cvs' => \$skip_cvs); if ($root_modules) { print "root_modules = $root_modules\n"; @@ -148,14 +149,7 @@ sub FindMakefiles { # Get options. parse_args(); - # - # Assume all.dot is checked in somewhere. - # - unless (-e "all.dot") { - print "No all.dot file found. Get one by running\n tools/module-deps/module-graph.pl . > all.dot\non built tree from the mozilla directory, or find one checked in somewhere.\n\n"; - PrintUsage(); - } - + # Module map file is currently mozilla/tools/module-deps/all.dot # Pull core build stuff. unless($skip_cvs) { @@ -182,7 +176,7 @@ sub FindMakefiles { my @modules; my $modules_string = ""; my $num_modules = 0; - my $modules_cmd = "mozilla/tools/module-deps/module-graph\.pl --file all\.dot --start-module $root_modules --list-only"; + my $modules_cmd = "mozilla/tools/module-deps/module-graph\.pl --file mozilla/tools/module-deps/all\.dot --start-module $root_modules --list-only"; $modules_string = run_shell_command($modules_cmd, 0); @modules = split(' ', $modules_string); $num_modules = $#modules + 1;