—#!/usr/bin/env perl
use
strict;
use
warnings;
use
App::mbxilinx;
my
$yml
=
$ARGV
[0] ||
'build.yml'
;
die
"Usage: $0 <build.yml>"
unless
-e
$yml
;
App::mbxilinx->process(
$yml
);
__END__
#### COPYRIGHT: 2014. Vikas N Kumar. All Rights Reserved
#### AUTHOR: Vikas N Kumar <vikas@cpan.org>
#### DATE: 11th July 2014
=head1 NAME
mbxilinx - Generate the Module::Xilinx::Build script by using YAML instead of
having to write Build.PL
=head1 VERSION
0.13
=head1 USAGE
mbxilinx <build.yml>
=head1 THE YAML FILE
The YAML file required here may be titled B<build.yml> or could be anything
else. By default if you just run C<mbxilinx> without any arguments it will look
for C<build.yml> in the current directory or fail.
A sample C<build.yml> is present in the C<share/example> directory in the source
code which we shall reproduce here
---
dist_name: dflipflops
dist_version: '0.01'
dist_author: 'Vikas N Kumar <vikas@cpan.org>'
dist_abstract: 'This is a test'
proj_params:
family: spartan3a
device: xc3s700a
package: fg484
speed: -4
language: VHDL
The C<mbxilinx> program using the L<App::mbxilinx> module just parses the input
YAML file and then calls L<Module::Build::Xilinx> to create the C<Build> script
for use by the user as given in the L<Module::Build::Xilinx> documentation.
=head1 SEE ALSO
L<Module::Build::Xilinx>, L<App::mbxilinx>
=head1 AUTHOR
Vikas Kumar, E<lt>vikas@cpan.orgE<gt>
=head1 CONTACT
Find me on IRC: I<#hardware> on L<irc://irc.perl.org> as user name B<vicash>.
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2014 by Vikas Kumar
This library is under the MIT license. Please refer the LICENSE file for more
information provided with the distribution.
=cut