| App-XML-DocBook-Builder documentation | Contained in the App-XML-DocBook-Builder distribution. |
App::XML::DocBook::Builder - Build DocBook/XML files.
Version 0.0300
use App::XML::DocBook::Builder;
my $foo = App::XML::DocBook::Builder->new();
Initialize the makefile in the directory.
Accepts one named argument which is "doc_base" for the document base name.
Shlomi Fish, <shlomif at cpan.org>
Please report any bugs or feature requests to
bug-app-docbook-xml-builder at rt.cpan.org, or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App::XML::DocBook::Builder.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc App::XML::DocBook::Builder
You can also look for information at:
http://rt.cpan.org/NoAuth/Bugs.html?Dist=App::XML::DocBook::Builder
Copyright 2007 Shlomi Fish.
This program is released under the following license: MIT/X11
| App-XML-DocBook-Builder documentation | Contained in the App-XML-DocBook-Builder distribution. |
package App::XML::DocBook::Builder; use warnings; use strict; use base 'Class::Accessor';
our $VERSION = '0.0300';
my $inst_dir = "$ENV{HOME}/apps/docbook-builder";
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 DOCBOOK_MAK_MAKEFILES_PATH = \$(DOCBOOK_MAK_PATH)/share/make/ include \$(DOCBOOK_MAK_MAKEFILES_PATH)/main-docbook.mak EOF 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); }
1; # End of App::XML::DocBook::Builder