Subversion Repositories DevTools

Rev

Rev 4386 | Rev 5695 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
392 dpurdie 1
########################################################################
2
# Copyright (C) 1998-2011 Vix Technology, All rights reserved
3
#
4
# Module name   : test_pod_html.pl
5
# Module type   : Makefile system
6
# Compiler(s)   : Perl
7
# Environment(s): jats
8
#
9
# Description   :
10
#
11
# Usage:
12
#
13
# Version   Who      Date        Description
14
#
15
#......................................................................#
16
 
17
require 5.008_002;
18
use strict;
19
use warnings;
20
 
21
use Pod::Usage;
22
use Getopt::Long;
23
 
24
use JatsError;
25
use FileUtils;
26
use JatsCopy;
27
InitFileUtils();
28
 
29
 
1272 dpurdie 30
my $opt_root = $ENV{'GBE_CORE'};
31
my $opt_package = $opt_root . '/pkg/core_devl';
32
my $opt_interface = $opt_root . '/interface';
4386 dpurdie 33
my $opt_verbose = $ENV{GBE_VERBOSE} || '0';
392 dpurdie 34
my $opt_force = '1';
35
 
36
use FileUtils;
37
use JatsCopy;
38
 
1272 dpurdie 39
Message ("root: $opt_root");
392 dpurdie 40
if ( $opt_force >= 0 )
41
{
42
    Message "Copy in Basic HTML - will clobber existing WEB Page Base";
43
    for my $dir (qw(HTML))
44
    {
45
        Message "Copy in: $dir";
46
        CopyDir ( "$opt_root/$dir", $opt_package,
47
                    'IgnoreDirs' => ['LOCAL', 'JatsDocTools'],
48
                    'KeepSrcTail' => 1);
49
    }
50
 
51
    #Message "Copy in this test page";
52
    #CopyFile ('test_pod_html.pl', "$opt_root/TOOLS" );
53
    TouchFile ("$opt_root/TOOLS/LOCAL/test_pod_html.pl");
54
}
55
#
56
#   Generate the HTML documenation from the POD
57
#   Generate the HTML TOc
58
#
59
Message ("Generate HTML documentation" );
60
use JatsDocTools::JatsDocTools;
61
JatsDocTools::UpdateHTML( 'force' => $opt_force,
62
                          'verbose' => $opt_verbose,
63
                          'htmldir' => FullPath("$opt_package/HTML"),
64
                          'prefix' => FullPath($opt_package),
1272 dpurdie 65
                          'prefix' => FullPath($opt_root),
392 dpurdie 66
                          'cacheDir' => FullPath($opt_interface),
67
                          'ChangeLog' => FullPath("$opt_root/ChangeLog.txt"),
68
                          'index' => 1,
69
                          );
1272 dpurdie 70
Message ("Path", FullPath($opt_root) );
392 dpurdie 71
 
72
=pod
73
 
74
=for htmltoc    GENERAL::Test::A Nice Name7::A Nice Name
75
 
76
=head1 NAME
77
 
78
pod_hmtl - POD to HTML Test Page
79
 
80
=head1 SYNOPSIS
81
 
82
  jats pod test page [options]
83
 
84
 Options:
85
    -help[=n]           - brief help message
86
    -help -help         - Detailed help message
87
 
88
=head1 OPTIONS
89
 
90
=over 8
91
 
92
=item B<-help[=n]>
93
 
94
Print a brief help message and exits.
95
 
96
The verbosity of the help text can be controlled by setting the help level to a
97
number in the range of 1 to 3, or by invoking the option multiple times.
98
 
99
=back
100
 
101
 
102
=head1 DESCRIPTION
103
 
104
This utility is used by the automated build system to create a workspace
105
for the view. The main function of this utility is to invoke the correct
106
utility for the creation of a workspace.
107
 
108
The utility will examine the -label option and detect the required Version
109
Control System. It will then invoke a suitable tools to create the workspace.
110
 
111
=for htmlclass Note
112
 
113
NOTE: This is a note. It can only be in one paragraph and it will not allow
114
other stuff within it.
115
 
116
Some Text.
117
 
118
=for htmlclass Warning
119
 
120
WARNING: This is a note. It can only be in one paragraph and it will not allow
121
other stuff within it.
122
 
123
Some text
124
 
125
=for htmlclass Tip
126
 
127
Tip: This is a note. It can only be in one paragraph and it will not allow
128
other stuff within it.
129
 
130
=for htmlclass Tip
131
 
132
Tip: This is a note. It can only be in one paragraph and it will not allow
133
other stuff within it.
134
 
135
The label must start with a Version Control Header. This is of the form of:
136
 
137
    XXX::Data
138
 
139
Where XXX identifies the Version Control System. Valid values are:
140
 
141
=over 4
142
 
143
=item   1 This is numbered
144
 
145
Body of the first item
146
 
147
Another para within the item
148
 
149
=item   2 This is numbered
150
 
151
Body of the 2nd item
152
 
153
Another para within the item
154
 
155
=back
156
 
157
Back to body level
158
 
159
=over 4
160
 
161
=item   * This is bulleted
162
 
163
=item   * This is bulleted
164
 
165
=back
166
 
167
=over 4
168
 
169
=item   3 This is numbered
170
 
171
=item   4 This is numbered
172
 
173
=back
174
 
175
 
176
Back to body level
177
 
178
=over 4
179
 
180
=item   1
181
 
182
This is numbered - body on a seperate line
183
 
184
Another para within the item
185
 
186
=item   2
187
 
188
This is numbered - body on a seperate line
189
 
190
Another para within the item
191
 
192
=back
193
 
194
Back to body level
195
 
196
=over 4
197
 
198
=item   *
199
 
200
This is bulleted - body on a seperate line
201
 
202
=item   *
203
 
204
This is bulleted - body on a seperate line
205
 
206
=back
207
 
208
Back to body level
209
 
210
Bulleted items, with  a numbered sub-indent
211
 
212
=over 8
213
 
214
=item   *
215
 
216
This is bulleted - body on a seperate line
217
 
218
=item   *
219
 
220
This is bulleted - body on a seperate line
221
 
222
=over 4
223
 
224
=item   1
225
 
226
This is numbered - body on a seperate line
227
 
228
=item   2
229
 
230
This is numbered - body on a seperate line
231
 
232
=back
233
 
234
Back to FIRST level of indentation
235
 
236
=item *
237
 
238
Continue with the bullet list
239
 
240
=back
241
 
242
Back to body level
243
 
244
Test of C<sandbox_archive> will this do good stuff. Also see C<Environment
245
variables>. What about C<Environment variables> and C<sandbox_archive>.
246
Also C<Environment variables>
247
 
248
=over 8
249
 
250
=cut
251