Subversion Repositories DevTools

Rev

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

Rev 1328 Rev 2053
Line 651... Line 651...
651
# Returns         : Will exit
651
# Returns         : Will exit
652
#
652
#
653
sub cmd
653
sub cmd
654
{
654
{
655
    my ($hcmd, @cmd_opts ) = @_;
655
    my ($hcmd, @cmd_opts ) = @_;
-
 
656
    my $opt_keepgoing;
656
 
657
 
657
    Getopt::Long::Configure('pass_through');
658
    Getopt::Long::Configure('pass_through');
-
 
659
    getOptionsFromArray ( \@cmd_opts,
-
 
660
                           'keepgoing!'  => \$opt_keepgoing,
658
    getOptionsFromArray ( \@cmd_opts ) || Error ("Invalid command line" );
661
                        ) || Error ("Invalid command line" );
659
    SubCommandHelp( $opt_help, $hcmd) if ($opt_help  );
662
    SubCommandHelp( $opt_help, $hcmd) if ($opt_help  );
660
 
663
 
661
    #
664
    #
662
    #   Determine Sandbox information
665
    #   Determine Sandbox information
663
    #   Populate global variables
666
    #   Populate global variables
Line 668... Line 671...
668
        my $dir = $fe->{dir};
671
        my $dir = $fe->{dir};
669
        Message( "Level:" . $fe->{level} . " Name: " . $fe->{dname} ,
672
        Message( "Level:" . $fe->{level} . " Name: " . $fe->{dname} ,
670
                  DisplayPath ("        Path: $fe->{dir}" ));
673
                  DisplayPath ("        Path: $fe->{dir}" ));
671
 
674
 
672
        my $result = JatsCmd( "-cd=$dir", @cmd_opts);
675
        my $result = JatsCmd( "-cd=$dir", @cmd_opts);
-
 
676
        if ( $result ) {
-
 
677
            if ( $opt_keepgoing ) {
-
 
678
                Warning ("Cmd failure");
-
 
679
            } else {
673
        Error ("Cmd failure") if ( $result );
680
                Error   ("Cmd failure");
-
 
681
            }
-
 
682
        }
674
    }
683
    }
675
 
684
 
676
    exit 0;
685
    exit 0;
677
}
686
}
678
 
687
 
Line 2021... Line 2030...
2021
 
2030
 
2022
jats sandbox cmd [command options] [arguments]
2031
jats sandbox cmd [command options] [arguments]
2023
 
2032
 
2024
 Command Options
2033
 Command Options
2025
    -help[=n]                  - Command specific help, [n=1,2,3]
2034
    -help[=n]                  - Command specific help, [n=1,2,3]
-
 
2035
    -[no]keepgoing             - Ignore errors
2026
    -toPackage=name            - Stop building after package
2036
    -toPackage=name            - Stop building after package
2027
    -fromPackage=name          - Start building from package
2037
    -fromPackage=name          - Start building from package
2028
    -justPackage=name[,name]   - Build named packages
2038
    -justPackage=name[,name]   - Build named packages
2029
    -ignorePackage=name[,name] - Do not build named packages
2039
    -ignorePackage=name[,name] - Do not build named packages
2030
 
2040
 
Line 2032... Line 2042...
2032
 
2042
 
2033
Arguments are passed to a JATS command.
2043
Arguments are passed to a JATS command.
2034
 
2044
 
2035
=head2 OPTIONS
2045
=head2 OPTIONS
2036
 
2046
 
-
 
2047
=over
-
 
2048
 
-
 
2049
=item B<-[no]keepgoing>
-
 
2050
 
-
 
2051
This options controls the behaviour of the command when an error is encountered.
-
 
2052
 
-
 
2053
The default opertation is to terminate the command on the package with the
2037
The are no command specific options.
2054
error. This can be modified so that errors are ignored.
-
 
2055
 
-
 
2056
=back
2038
 
2057
 
2039
=head2 DESCRIPTION
2058
=head2 DESCRIPTION
2040
 
2059
 
2041
The 'cmd' command will pass all of its arguments to JATS in the build directory
2060
The 'cmd' command will pass all of its arguments to JATS in the build directory
2042
of each of the packages within the sandbox, in the package build order.
2061
of each of the packages within the sandbox, in the package build order.