Subversion Repositories DevTools

Rev

Rev 7299 | Rev 7307 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7299 Rev 7300
Line 1... Line 1...
1
#! perl
1
#! perl
2
########################################################################
2
########################################################################
3
# Copyright (c) VIX TECHNOLOGY (AUST) LTD
3
# COPYRIGHT - VIX IP PTY LTD ("VIX"). ALL RIGHTS RESERVED.
4
#
4
#
5
# Module name   : jats.sh
5
# Module name   : jats.sh
6
# Module type   : Makefile system
6
# Module type   : Makefile system
7
# Compiler(s)   : n/a
7
# Compiler(s)   : n/a
8
# Environment(s): jats
8
# Environment(s): jats
Line 53... Line 53...
53
my $opt_dir;
53
my $opt_dir;
54
my $opt_java;
54
my $opt_java;
55
my $opt_export_vars = 1;
55
my $opt_export_vars = 1;
56
my $result;
56
my $result;
57
my $opt_logfile;
57
my $opt_logfile;
-
 
58
my $opt_script;
58
my $notaBuildMachine = 0;
59
my $notaBuildMachine = 0;
59
my @opt_buildfilter;
60
my @opt_buildfilter;
60
 
61
 
61
#
62
#
62
#   Grab a copy of ALL the environment variable that will be used
63
#   Grab a copy of ALL the environment variable that will be used
Line 142... Line 143...
142
            "platform:s",       => sub{ opts_extend( \$GBE_PLATFORM, @_ )},
143
            "platform:s",       => sub{ opts_extend( \$GBE_PLATFORM, @_ )},
143
            "buildfilter:s"     => \@opt_buildfilter,
144
            "buildfilter:s"     => \@opt_buildfilter,
144
            "abt:s"             => sub{ opts_extend( \$GBE_ABT, @_ )},
145
            "abt:s"             => sub{ opts_extend( \$GBE_ABT, @_ )},
145
            "exportvars!"       => \$opt_export_vars,
146
            "exportvars!"       => \$opt_export_vars,
146
            "logfile=s",        => \$opt_logfile,
147
            "logfile=s",        => \$opt_logfile,
-
 
148
            "script!",          => \$opt_script,
147
            );
149
            );
148
 
150
 
149
#
151
#
150
#   Configure the error reporting process now that we have the user options
152
#   Configure the error reporting process now that we have the user options
151
#
153
#
Line 287... Line 289...
287
 
289
 
288
#-------------------------------------------------------------------------------
290
#-------------------------------------------------------------------------------
289
# Function        : END
291
# Function        : END
290
#
292
#
291
# Description     : Display user warnings at the end of the processing
293
# Description     : Display user warnings at the end of the processing
-
 
294
#                   unless we are processing with a script
292
#
295
#
293
# Inputs          : global: @endWarnings
296
# Inputs          : global: @endWarnings
294
#
297
#
295
END
298
END
296
{
299
{
297
    Message (@endWarnings)
300
    Message (@endWarnings)
298
        if ( @endWarnings );
301
        if ( @endWarnings && !$opt_script );
299
}
302
}
300
 
303
 
301
################################################################################
304
################################################################################
302
#   If running with cygwin then warn if the CYGWIN environment variable
305
#   If running with cygwin then warn if the CYGWIN environment variable
303
#   contains "tty". tty mode causes some strange behaviour such as:
306
#   contains "tty". tty mode causes some strange behaviour such as:
Line 2307... Line 2310...
2307
    -java=version       - Alters java version used (1.4, 1.5, 1.6)
2310
    -java=version       - Alters java version used (1.4, 1.5, 1.6)
2308
    -time               - Time build and compile times
2311
    -time               - Time build and compile times
2309
    -version=xxx        - Use specified version of JATS
2312
    -version=xxx        - Use specified version of JATS
2310
    -[no]exportvars     - Export sanitised JATS EnvVars (default)
2313
    -[no]exportvars     - Export sanitised JATS EnvVars (default)
2311
    -logfile=xxxx       - All output is redirected to the specified file
2314
    -logfile=xxxx       - All output is redirected to the specified file
-
 
2315
    -[no]script         - Suppress JATS messages.
2312
 
2316
 
2313
 Common commands include:
2317
 Common commands include:
2314
    build               - Rebuild the sandbox and makefiles
2318
    build               - Rebuild the sandbox and makefiles
2315
    make                - Make one or more components
2319
    make                - Make one or more components
2316
    ant                 - Invoke an ant build
2320
    ant                 - Invoke an ant build
Line 2517... Line 2521...
2517
is executed.
2521
is executed.
2518
 
2522
 
2519
Output redirection continues until the program terminates. If JATS invokes other
2523
Output redirection continues until the program terminates. If JATS invokes other
2520
programs or scripts, there default output will also be redirected.
2524
programs or scripts, there default output will also be redirected.
2521
 
2525
 
-
 
2526
=item B<-[no]script>
-
 
2527
 
-
 
2528
This option will suppress some internal warning messages, generated by the JATS wrapper
-
 
2529
script. It is intended to allow JATS to be used with a shell script without the output 
-
 
2530
being polluted with internal warnings.
-
 
2531
 
-
 
2532
The default operation is to show internal warnings. 
-
 
2533
 
2522
=back
2534
=back
2523
 
2535
 
2524
=head1 ARGUMENTS
2536
=head1 ARGUMENTS
2525
 
2537
 
2526
=head2 Basic Commands
2538
=head2 Basic Commands