Beam-Make

 view release on metacpan or  search on metacpan

lib/Beam/Make/File.pm  view on Meta::CPAN

#pod     # Interpreted as a shell script. Pipes, environment variables, redirects,
#pod     # etc... allowed
#pod     - cc -Wall main.c
#pod
#pod     # `cc` invoked directly. Shell functions will not work.
#pod     - [ cc, -Wall, main.c ]
#pod
#pod     # A single, multi-line shell script
#pod     - |
#pod         if [ $( date ) -gt $DATE ]; then
#pod             echo Another day $( date ) >> /var/log/calendar.log
#pod         fi
#pod
#pod =cut

has commands => ( is => 'ro', required => 1 );

sub make( $self, %vars ) {
    for my $cmd ( $self->commands->@* ) {
        my @cmd = ref $cmd eq 'ARRAY' ? @$cmd : ( $cmd );
        system @cmd;

lib/Beam/Make/File.pm  view on Meta::CPAN

    # Interpreted as a shell script. Pipes, environment variables, redirects,
    # etc... allowed
    - cc -Wall main.c

    # `cc` invoked directly. Shell functions will not work.
    - [ cc, -Wall, main.c ]

    # A single, multi-line shell script
    - |
        if [ $( date ) -gt $DATE ]; then
            echo Another day $( date ) >> /var/log/calendar.log
        fi

=head1 SEE ALSO

L<Beam::Make>, L<Beam::Wire>, L<DBI>

=head1 AUTHOR

Doug Bell <preaction@cpan.org>



( run in 0.488 second using v1.01-cache-2.11-cpan-5dc5da66d9d )