Subversion Repositories DevTools

Rev

Go to most recent revision | Details | 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
 
30
my $opt_root = '../..';
31
my $opt_package = '../../pkg/core_devl';
32
my $opt_interface = '../../interface';
33
my $opt_verbose = '0';
34
my $opt_force = '1';
35
 
36
use FileUtils;
37
use JatsCopy;
38
 
39
if ( $opt_force >= 0 )
40
{
41
    Message "Copy in Basic HTML - will clobber existing WEB Page Base";
42
    for my $dir (qw(HTML))
43
    {
44
        Message "Copy in: $dir";
45
        CopyDir ( "$opt_root/$dir", $opt_package,
46
                    'IgnoreDirs' => ['LOCAL', 'JatsDocTools'],
47
                    'KeepSrcTail' => 1);
48
    }
49
 
50
    #Message "Copy in this test page";
51
    #CopyFile ('test_pod_html.pl', "$opt_root/TOOLS" );
52
    TouchFile ("$opt_root/TOOLS/LOCAL/test_pod_html.pl");
53
}
54
#
55
#   Generate the HTML documenation from the POD
56
#   Generate the HTML TOc
57
#
58
Message ("Generate HTML documentation" );
59
use JatsDocTools::JatsDocTools;
60
JatsDocTools::UpdateHTML( 'force' => $opt_force,
61
                          'verbose' => $opt_verbose,
62
                          'htmldir' => FullPath("$opt_package/HTML"),
63
                          'prefix' => FullPath($opt_package),
64
                          'prefix' => FullPath('../..'),
65
                          'cacheDir' => FullPath($opt_interface),
66
                          'ChangeLog' => FullPath("$opt_root/ChangeLog.txt"),
67
                          'index' => 1,
68
                          );
69
Message ("Path", FullPath('..') );
70
 
71
=pod
72
 
73
=for htmltoc    GENERAL::Test::A Nice Name7::A Nice Name
74
 
75
=head1 NAME
76
 
77
pod_hmtl - POD to HTML Test Page
78
 
79
=head1 SYNOPSIS
80
 
81
  jats pod test page [options]
82
 
83
 Options:
84
    -help[=n]           - brief help message
85
    -help -help         - Detailed help message
86
 
87
=head1 OPTIONS
88
 
89
=over 8
90
 
91
=item B<-help[=n]>
92
 
93
Print a brief help message and exits.
94
 
95
The verbosity of the help text can be controlled by setting the help level to a
96
number in the range of 1 to 3, or by invoking the option multiple times.
97
 
98
=back
99
 
100
 
101
=head1 DESCRIPTION
102
 
103
This utility is used by the automated build system to create a workspace
104
for the view. The main function of this utility is to invoke the correct
105
utility for the creation of a workspace.
106
 
107
The utility will examine the -label option and detect the required Version
108
Control System. It will then invoke a suitable tools to create the workspace.
109
 
110
=for htmlclass Note
111
 
112
NOTE: This is a note. It can only be in one paragraph and it will not allow
113
other stuff within it.
114
 
115
Some Text.
116
 
117
=for htmlclass Warning
118
 
119
WARNING: This is a note. It can only be in one paragraph and it will not allow
120
other stuff within it.
121
 
122
Some text
123
 
124
=for htmlclass Tip
125
 
126
Tip: This is a note. It can only be in one paragraph and it will not allow
127
other stuff within it.
128
 
129
=for htmlclass Tip
130
 
131
Tip: This is a note. It can only be in one paragraph and it will not allow
132
other stuff within it.
133
 
134
The label must start with a Version Control Header. This is of the form of:
135
 
136
    XXX::Data
137
 
138
Where XXX identifies the Version Control System. Valid values are:
139
 
140
=over 4
141
 
142
=item   1 This is numbered
143
 
144
Body of the first item
145
 
146
Another para within the item
147
 
148
=item   2 This is numbered
149
 
150
Body of the 2nd item
151
 
152
Another para within the item
153
 
154
=back
155
 
156
Back to body level
157
 
158
=over 4
159
 
160
=item   * This is bulleted
161
 
162
=item   * This is bulleted
163
 
164
=back
165
 
166
=over 4
167
 
168
=item   3 This is numbered
169
 
170
=item   4 This is numbered
171
 
172
=back
173
 
174
 
175
Back to body level
176
 
177
=over 4
178
 
179
=item   1
180
 
181
This is numbered - body on a seperate line
182
 
183
Another para within the item
184
 
185
=item   2
186
 
187
This is numbered - body on a seperate line
188
 
189
Another para within the item
190
 
191
=back
192
 
193
Back to body level
194
 
195
=over 4
196
 
197
=item   *
198
 
199
This is bulleted - body on a seperate line
200
 
201
=item   *
202
 
203
This is bulleted - body on a seperate line
204
 
205
=back
206
 
207
Back to body level
208
 
209
Bulleted items, with  a numbered sub-indent
210
 
211
=over 8
212
 
213
=item   *
214
 
215
This is bulleted - body on a seperate line
216
 
217
=item   *
218
 
219
This is bulleted - body on a seperate line
220
 
221
=over 4
222
 
223
=item   1
224
 
225
This is numbered - body on a seperate line
226
 
227
=item   2
228
 
229
This is numbered - body on a seperate line
230
 
231
=back
232
 
233
Back to FIRST level of indentation
234
 
235
=item *
236
 
237
Continue with the bullet list
238
 
239
=back
240
 
241
Back to body level
242
 
243
Test of C<sandbox_archive> will this do good stuff. Also see C<Environment
244
variables>. What about C<Environment variables> and C<sandbox_archive>.
245
Also C<Environment variables>
246
 
247
 
248
=over 8
249
 
250
=item JILL
251
 
252
There are two ways that this option may be used.
253
 
254
=over 8
255
 
256
=item 1
257
 
258
Simply name the VOB. The script will locate a dynamic view on the
259
 
260
=item 2
261
 
262
The full path to a VOB, including driver is provided. This will
263
 
264
=back
265
 
266
This MUST not go back to the base level. It SHOULD be indented.
267
 
268
=for htmlclass Warning
269
 
270
Check previous line
271
 
272
=back
273
 
274
=cut
275
 
276