| 1 | package App::XML::DocBook::Builder; | ||
| 2 | 1 | $App::XML::DocBook::Builder::VERSION = '0.1101'; | |
| 3 | 1 | ▶ | use 5.014; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use autodie; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | sub new | ||
| 9 | 0 | ▶ | { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 10 | 0 | my $class = shift; | |
| 11 | |||
| 12 | 0 | return bless {}, $class; | |
| 13 | } | ||
| 14 | |||
| 15 | 1 | 1; | |
| 16 | |||
| 17 | |||
| 18 | 1 | my $inst_dir = "$ENV{HOME}/apps/docbook-builder"; | |
| 19 | |||
| 20 | |||
| 21 | sub initialize_makefiles | ||
| 22 | 0 | ▶ | { |
|
Subroutine
initialize_makefiles: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | 0 | my $self = shift; | |
| 24 | |||
| 25 | 0 | my $args = shift; | |
| 26 | |||
| 27 | 0 | my $redirect_makefile = "docmake.mak"; | |
| 28 | |||
| 29 | 0 | open my $docbook_mak, ">", $redirect_makefile; | |
| 30 | |||
| 31 | 0 | print {$docbook_mak} <<"EOF"; | |
| 32 | DOCBOOK_MAK_PATH = $inst_dir | ||
| 33 | |||
| 34 | DOCBOOK_MAK_MAKEFILES_PATH = \$(DOCBOOK_MAK_PATH)/share/make/ | ||
| 35 | |||
| 36 | include \$(DOCBOOK_MAK_MAKEFILES_PATH)/main-docbook.mak | ||
| 37 | EOF | ||
| 38 | |||
| 39 | 0 | close($docbook_mak); | |
| 40 | |||
| 41 | 0 | open my $main_mak, ">", "Makefile.main"; | |
| 42 | 0 | print {$main_mak} "DOC = " | |
| 43 | . $args->{doc_base} | ||
| 44 | 0 | . "\n\ninclude $redirect_makefile\n\n"; | |
| 45 | 0 | close($main_mak); | |
| 46 | |||
| 47 | 0 | return; | |
| 48 | } | ||
| 49 | |||
| 50 | |||
| 51 | 1 | 1; # End of App::XML::DocBook::Builder | |
| 52 | |||
| 53 | __END__ | ||