Docmake / modules / App-XML-DocBook-Docmake / lib / App / XML / DocBook /

package App::XML::DocBook::Builder;

use warnings;
use strict;

use base 'Class::Accessor';

=head1 NAME

App::XML::DocBook::Builder - Build DocBook/XML files.

=head1 VERSION

Version 0.0201


our $VERSION = '0.0201';


    use App::XML::DocBook::Builder;

    my $foo = App::XML::DocBook::Builder->new();


my $inst_dir = "$ENV{HOME}/apps/docbook-builder";


=head2 initialize_makefiles($args)

Initialize the makefile in the directory.

Accepts one named argument which is "doc_base" for the document base name.


sub initialize_makefiles
    my $self = shift;

    my $args = shift;

    my $redirect_makefile = "docmake.mak";

    open my $docbook_mak, ">", $redirect_makefile or
        die "Could not open Makefile for writing";

    print $docbook_mak <<"EOF";
DOCBOOK_MAK_PATH = $inst_dir


include \$(DOCBOOK_MAK_MAKEFILES_PATH)/main-docbook.mak

    close ($docbook_mak);

    open my $main_mak, ">", "Makefile.main";
    print $main_mak "DOC = " . $args->{doc_base} . "\n\ninclude $redirect_makefile\n\n";
    close ($main_mak);

=head1 AUTHOR

Shlomi Fish, C<< <shlomif at> >>

=head1 BUGS

Please report any bugs or feature requests to
C<bug-app-docbook-xml-builder at>, or through the web interface at
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.

=head1 SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc App::XML::DocBook::Builder

You can also look for information at:

=over 4

=item * AnnoCPAN: Annotated CPAN documentation


=item * CPAN Ratings


=item * RT: CPAN's request tracker


=item * Search CPAN





Copyright 2007 Shlomi Fish.

This program is released under the following license: MIT/X11



1; # End of App::XML::DocBook::Builder
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.