1 package ExtUtils::XSpp::Cmd;
7 ExtUtils::XSpp::Cmd - implementation of xspp
11 perl -MExtUtils::XSpp::Cmd -e xspp -- <xspp options/arguments>
15 INCLUDE_COMMAND: $^X -MExtUtils::XSpp::Cmd -e xspp -- <xspp options/arguments>
17 Using C<ExtUtils::XSpp::Cmd> is equivalent to using the C<xspp>
18 command line script, except that there is no guarantee for C<xspp> to
19 be installed in the system PATH.
23 See L<ExtUtils::XSpp>, L<xspp>.
27 use Exporter 'import';
30 use ExtUtils::XSpp::Driver;
32 our @EXPORT = qw(xspp);
35 my( @typemap_files, $xsubpp, $xsubpp_args );
36 GetOptions( 'typemap=s' => \@typemap_files,
37 'xsubpp:s' => \$xsubpp,
38 'xsubpp-args=s' => \$xsubpp_args,
40 $xsubpp = 'xsubpp' if defined $xsubpp && !length $xsubpp;
42 my $driver = ExtUtils::XSpp::Driver->new
43 ( typemaps => \@typemap_files,
46 xsubpp_args => $xsubpp_args,
48 my $success = $driver->process ? 0 : 1;
50 exit $success unless defined wantarray;