xref: /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/t/pod/headings.t (revision 0:68f95e015346)
1*0Sstevel@tonic-gateBEGIN {
2*0Sstevel@tonic-gate   use File::Basename;
3*0Sstevel@tonic-gate   my $THISDIR = dirname $0;
4*0Sstevel@tonic-gate   unshift @INC, $THISDIR;
5*0Sstevel@tonic-gate   require "testp2pt.pl";
6*0Sstevel@tonic-gate   import TestPodIncPlainText;
7*0Sstevel@tonic-gate}
8*0Sstevel@tonic-gate
9*0Sstevel@tonic-gatemy %options = map { $_ => 1 } @ARGV;  ## convert cmdline to options-hash
10*0Sstevel@tonic-gatemy $passed  = testpodplaintext \%options, $0;
11*0Sstevel@tonic-gateexit( ($passed == 1) ? 0 : -1 )  unless $ENV{HARNESS_ACTIVE};
12*0Sstevel@tonic-gate
13*0Sstevel@tonic-gate
14*0Sstevel@tonic-gate__END__
15*0Sstevel@tonic-gate
16*0Sstevel@tonic-gate
17*0Sstevel@tonic-gate#################################################################
18*0Sstevel@tonic-gate  use Pod::Usage;
19*0Sstevel@tonic-gate  pod2usage( VERBOSE => 2, EXIT => 1 );
20*0Sstevel@tonic-gate
21*0Sstevel@tonic-gate=pod
22*0Sstevel@tonic-gate
23*0Sstevel@tonic-gate=head1 NAME
24*0Sstevel@tonic-gate
25*0Sstevel@tonic-gateB<rdb2pg> - insert an rdb table into a PostgreSQL database
26*0Sstevel@tonic-gate
27*0Sstevel@tonic-gate=head1 SYNOPSIS
28*0Sstevel@tonic-gate
29*0Sstevel@tonic-gateB<rdb2pg>  [I<param>=I<value> ...]
30*0Sstevel@tonic-gate
31*0Sstevel@tonic-gate=head1 PARAMETERS
32*0Sstevel@tonic-gate
33*0Sstevel@tonic-gateB<rdb2pg> uses an IRAF-compatible parameter interface.
34*0Sstevel@tonic-gateA template parameter file is in F</proj/axaf/simul/lib/uparm/rdb2pg.par>.
35*0Sstevel@tonic-gate
36*0Sstevel@tonic-gate=over 4
37*0Sstevel@tonic-gate
38*0Sstevel@tonic-gate=item B<input> I<file>
39*0Sstevel@tonic-gate
40*0Sstevel@tonic-gateThe B<RDB> file to insert into the database. If the given name
41*0Sstevel@tonic-gateis the string C<stdin>, it reads from the UNIX standard input stream.
42*0Sstevel@tonic-gate
43*0Sstevel@tonic-gate
44*0Sstevel@tonic-gate=back
45*0Sstevel@tonic-gate
46*0Sstevel@tonic-gate=head1 DESCRIPTION
47*0Sstevel@tonic-gate
48*0Sstevel@tonic-gateB<rdb2pg> will enter the data from an B<RDB> database into a
49*0Sstevel@tonic-gatePostgreSQL database table, optionally creating the database and the
50*0Sstevel@tonic-gatetable if they do not exist.  It automatically determines the
51*0Sstevel@tonic-gatePostgreSQL data type from the column definition in the B<RDB> file,
52*0Sstevel@tonic-gatebut may be overriden via a series of definition files or directly
53*0Sstevel@tonic-gatevia one of its parameters.
54*0Sstevel@tonic-gate
55*0Sstevel@tonic-gateThe target database and table are specified by the C<db> and C<table>
56*0Sstevel@tonic-gateparameters.  If they do not exist, and the C<createdb> parameter is
57*0Sstevel@tonic-gateset, they will be created.  Table field definitions are determined
58*0Sstevel@tonic-gatein the following order:
59*0Sstevel@tonic-gate
60*0Sstevel@tonic-gate=cut
61*0Sstevel@tonic-gate
62*0Sstevel@tonic-gate#################################################################
63*0Sstevel@tonic-gate
64*0Sstevel@tonic-gateresults in:
65*0Sstevel@tonic-gate
66*0Sstevel@tonic-gate
67*0Sstevel@tonic-gate#################################################################
68*0Sstevel@tonic-gate
69*0Sstevel@tonic-gate    rdb2pg - insert an rdb table into a PostgreSQL database
70*0Sstevel@tonic-gate
71*0Sstevel@tonic-gate    rdb2pg [*param*=*value* ...]
72*0Sstevel@tonic-gate
73*0Sstevel@tonic-gate    rdb2pg uses an IRAF-compatible parameter interface. A template
74*0Sstevel@tonic-gate    parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.
75*0Sstevel@tonic-gate
76*0Sstevel@tonic-gate    The RDB file to insert into the database. If the given name is
77*0Sstevel@tonic-gate    the string `stdin', it reads from the UNIX standard input
78*0Sstevel@tonic-gate    stream.
79*0Sstevel@tonic-gate
80*0Sstevel@tonic-gate    rdb2pg will enter the data from an RDB database into a
81*0Sstevel@tonic-gate    PostgreSQL database table, optionally creating the database and
82*0Sstevel@tonic-gate    the table if they do not exist. It automatically determines the
83*0Sstevel@tonic-gate    PostgreSQL data type from the column definition in the RDB file,
84*0Sstevel@tonic-gate    but may be overriden via a series of definition files or
85*0Sstevel@tonic-gate    directly via one of its parameters.
86*0Sstevel@tonic-gate
87*0Sstevel@tonic-gate    The target database and table are specified by the `db' and
88*0Sstevel@tonic-gate    `table' parameters. If they do not exist, and the `createdb'
89*0Sstevel@tonic-gate    parameter is set, they will be created. Table field definitions
90*0Sstevel@tonic-gate    are determined in the following order:
91*0Sstevel@tonic-gate
92*0Sstevel@tonic-gate
93*0Sstevel@tonic-gate#################################################################
94*0Sstevel@tonic-gate
95*0Sstevel@tonic-gatewhile the original version of Text (using pod2text) gives
96*0Sstevel@tonic-gate
97*0Sstevel@tonic-gate#################################################################
98*0Sstevel@tonic-gate
99*0Sstevel@tonic-gateNAME
100*0Sstevel@tonic-gate    rdb2pg - insert an rdb table into a PostgreSQL database
101*0Sstevel@tonic-gate
102*0Sstevel@tonic-gateSYNOPSIS
103*0Sstevel@tonic-gate    rdb2pg [*param*=*value* ...]
104*0Sstevel@tonic-gate
105*0Sstevel@tonic-gatePARAMETERS
106*0Sstevel@tonic-gate    rdb2pg uses an IRAF-compatible parameter interface. A template
107*0Sstevel@tonic-gate    parameter file is in /proj/axaf/simul/lib/uparm/rdb2pg.par.
108*0Sstevel@tonic-gate
109*0Sstevel@tonic-gate    input *file*
110*0Sstevel@tonic-gate        The RDB file to insert into the database. If the given name
111*0Sstevel@tonic-gate        is the string `stdin', it reads from the UNIX standard input
112*0Sstevel@tonic-gate        stream.
113*0Sstevel@tonic-gate
114*0Sstevel@tonic-gateDESCRIPTION
115*0Sstevel@tonic-gate    rdb2pg will enter the data from an RDB database into a
116*0Sstevel@tonic-gate    PostgreSQL database table, optionally creating the database and
117*0Sstevel@tonic-gate    the table if they do not exist. It automatically determines the
118*0Sstevel@tonic-gate    PostgreSQL data type from the column definition in the RDB file,
119*0Sstevel@tonic-gate    but may be overriden via a series of definition files or
120*0Sstevel@tonic-gate    directly via one of its parameters.
121*0Sstevel@tonic-gate
122*0Sstevel@tonic-gate    The target database and table are specified by the `db' and
123*0Sstevel@tonic-gate    `table' parameters. If they do not exist, and the `createdb'
124*0Sstevel@tonic-gate    parameter is set, they will be created. Table field definitions
125*0Sstevel@tonic-gate    are determined in the following order:
126*0Sstevel@tonic-gate
127*0Sstevel@tonic-gate
128*0Sstevel@tonic-gate#################################################################
129*0Sstevel@tonic-gate
130*0Sstevel@tonic-gate
131*0Sstevel@tonic-gateThanks for any help.  If, as your email indicates, you've not much
132*0Sstevel@tonic-gatetime to look at this, I can work around things by calling pod2text()
133*0Sstevel@tonic-gatedirectly using the official Text.pm.
134*0Sstevel@tonic-gate
135*0Sstevel@tonic-gateDiab
136*0Sstevel@tonic-gate
137*0Sstevel@tonic-gate-------------
138*0Sstevel@tonic-gateDiab Jerius
139*0Sstevel@tonic-gatedjerius@cfa.harvard.edu
140*0Sstevel@tonic-gate
141