1 |
#!/usr/bin/env perl
|
2 |
#===========================================================================#
|
3 |
# NAME: scramdbg #
|
4 |
#===========================================================================#
|
5 |
# #
|
6 |
# DATE: Mon Dec 3 12:34:54 2001 #
|
7 |
# #
|
8 |
# AUTHOR: Shaun Ashby #
|
9 |
# #
|
10 |
# MOD LOG: #
|
11 |
# #
|
12 |
# #
|
13 |
#===========================================================================#
|
14 |
# DESCRIPTION: Run scram with verbose flags turned on for relevant pm's #
|
15 |
#===========================================================================#
|
16 |
|
17 |
use strict;
|
18 |
|
19 |
my @suppliedargs=join(' ',@ARGV);
|
20 |
my @verboseflags=qw(BuildSystem::BuildSetup BuildSystem::BuildFile BuildSystem::Build BuildSystem::Requirements BuildSystem::ToolDoc BuildSystem::ToolBox Scram::ScramFunctions Scram::AutoToolSetup ActiveDoc::ActiveDoc ActiveDoc::SimpleURLDoc Configuration::ConfigArea);
|
21 |
|
22 |
my @progargs=("scram ");
|
23 |
|
24 |
# This could be improved by using GetOpts and giving the user a choice
|
25 |
# of debug levels, or options for turning on/off debug for particular
|
26 |
# parts of scram (eg., buildsystem only, setup only etc.).
|
27 |
|
28 |
foreach my $pkg (@verboseflags)
|
29 |
{
|
30 |
push(@progargs, '-verbose '.$pkg.' ');
|
31 |
}
|
32 |
|
33 |
# Run scram:
|
34 |
exec "@progargs @suppliedargs";
|