3 # Usage: roffitall [-nroff|-psroff|-groff]
5 # Authors: Tom Christiansen, Raphael Manfredi
10 if test -f ../config.sh; then
14 mandir=$installman1dir
15 libdir=$installman3dir
17 test -d $mandir || mandir=/usr/new/man/man1
18 test -d $libdir || libdir=/usr/new/man/man3
21 -nroff) cmd="nroff -man"; ext='txt';;
22 -psroff) cmd="psroff -t"; ext='ps';;
23 -groff) cmd="groff -man"; ext='ps';;
25 echo "Usage: roffitall [-nroff|-psroff|-groff]" >&2
41 $mandir/perlopentut.1 \
43 $mandir/perlmodlib.1 \
44 $mandir/perlmodinstall.1 \
47 $mandir/perllocale.1 \
49 $mandir/perlreftut.1 \
57 $mandir/perlthrtut.1 \
72 $mandir/perlcompile.1 \
75 $mandir/perlintern.1 \
79 $mandir/perl5004delta.1 \
80 $mandir/perl5005delta.1 \
111 $libdir/diagnostics.3 \
126 $libdir/AnyDBM_File.3 \
127 $libdir/AutoLoader.3 \
128 $libdir/AutoSplit.3 \
130 $libdir/B::Asmdata.3 \
131 $libdir/B::Assembler.3 \
132 $libdir/B::Bblock.3 \
133 $libdir/B::Bytecode.3 \
137 $libdir/B::Deparse.3 \
138 $libdir/B::Disassembler.3 \
140 $libdir/B::Showlex.3 \
141 $libdir/B::Stackobj.3 \
144 $libdir/Benchmark.3 \
147 $libdir/CGI::Apache.3 \
148 $libdir/CGI::Carp.3 \
149 $libdir/CGI::Cookie.3 \
150 $libdir/CGI::Fast.3 \
151 $libdir/CGI::Push.3 \
152 $libdir/CGI::Switch.3 \
153 $libdir/Class::Struct.3 \
156 $libdir/CPAN::FirstTime.3 \
157 $libdir/CPAN::Nox.3 \
159 $libdir/Data::Dumper.3 \
161 $libdir/Devel::SelfStubber.3 \
162 $libdir/DirHandle.3 \
163 $libdir/DynaLoader.3 \
164 $libdir/Dumpvalue.3 \
169 $libdir/ExtUtils::Command.3 \
170 $libdir/ExtUtils::Embed.3 \
171 $libdir/ExtUtils::Install.3 \
172 $libdir/ExtUtils::Installed.3 \
173 $libdir/ExtUtils::Liblist.3 \
174 $libdir/ExtUtils::MakeMaker.3 \
175 $libdir/ExtUtils::Manifest.3 \
176 $libdir/ExtUtils::Miniperl.3 \
177 $libdir/ExtUtils::Mkbootstrap.3 \
178 $libdir/ExtUtils::Mksymlists.3 \
179 $libdir/ExtUtils::MM_OS2.3 \
180 $libdir/ExtUtils::MM_Unix.3 \
181 $libdir/ExtUtils::MM_VMS.3 \
182 $libdir/ExtUtils::MM_Win32.3 \
183 $libdir/ExtUtils::Packlist.3 \
184 $libdir/ExtUtils::testlib.3 \
187 $libdir/File::Basename.3 \
188 $libdir/File::CheckTree.3 \
189 $libdir/File::Compare.3 \
190 $libdir/File::Copy.3 \
191 $libdir/File::DosGlob.3 \
192 $libdir/File::Find.3 \
193 $libdir/File::Path.3 \
194 $libdir/File::Spec.3 \
195 $libdir/File::Spec::Mac.3 \
196 $libdir/File::Spec::OS2.3 \
197 $libdir/File::Spec::Unix.3 \
198 $libdir/File::Spec::VMS.3 \
199 $libdir/File::Spec::Win32.3 \
200 $libdir/File::stat.3 \
201 $libdir/FileCache.3 \
202 $libdir/FileHandle.3 \
204 $libdir/GDBM_File.3 \
205 $libdir/Getopt::Long.3 \
206 $libdir/Getopt::Std.3 \
207 $libdir/I18N::Collate.3 \
210 $libdir/IO::Handle.3 \
212 $libdir/IO::Seekable.3 \
213 $libdir/IO::Select.3 \
214 $libdir/IO::Socket.3 \
216 $libdir/IPC::Open2.3 \
217 $libdir/IPC::Open3.3 \
218 $libdir/IPC::Semaphore.3 \
219 $libdir/IPC::SysV.3 \
220 $libdir/Math::BigFloat.3 \
221 $libdir/Math::BigInt.3 \
222 $libdir/Math::Complex.3 \
223 $libdir/Math::Trig.3 \
224 $libdir/NDBM_File.3 \
225 $libdir/Net::hostent.3 \
226 $libdir/Net::netent.3 \
227 $libdir/Net::Ping.3 \
228 $libdir/Net::protoent.3 \
229 $libdir/Net::servent.3 \
232 $libdir/Pod::Html.3 \
233 $libdir/Pod::Text.3 \
236 $libdir/SDBM_File.3 \
237 $libdir/Search::Dict.3 \
238 $libdir/SelectSaver.3 \
239 $libdir/SelfLoader.3 \
243 $libdir/Sys::Hostname.3 \
244 $libdir/Sys::Syslog.3 \
245 $libdir/Term::Cap.3 \
246 $libdir/Term::Complete.3 \
247 $libdir/Term::ReadLine.3 \
249 $libdir/Test::Harness.3 \
250 $libdir/Text::Abbrev.3 \
251 $libdir/Text::ParseWords.3 \
252 $libdir/Text::Soundex.3 \
253 $libdir/Text::Tabs.3 \
254 $libdir/Text::Wrap.3 \
255 $libdir/Tie::Array.3 \
256 $libdir/Tie::Handle.3 \
257 $libdir/Tie::Hash.3 \
258 $libdir/Tie::RefHash.3 \
259 $libdir/Tie::Scalar.3 \
260 $libdir/Tie::SubstrHash.3 \
261 $libdir/Time::gmtime.3 \
262 $libdir/Time::Local.3 \
263 $libdir/Time::localtime.3 \
265 $libdir/UNIVERSAL.3 \
266 $libdir/User::grent.3 \
267 $libdir/User::pwent.3 | \
268 perl -ne 'map { -r && print "$_ " } split'`
270 # Bypass internal shell buffer limit -- can't use case
271 if perl -e '$a = shift; exit($a =~ m|/|)' $toroff; then
272 echo "$me: empty file list -- did you run install?" >&2
276 #psroff -t -man -rC1 -rD1 -rF1 > $tmp/PerlDoc.ps 2>$tmp/PerlTOC.raw
277 #nroff -man -rC1 -rD1 -rF1 > $tmp/PerlDoc.txt 2>$tmp/PerlTOC.nr.raw
279 # First, create the raw data
280 run="$cmd -rC1 -rD1 -rF1 >$tmp/PerlDoc.$ext 2>$tmp/PerlTOC.$ext.raw"
281 echo "$me: running $run"
285 echo "$me: parsing TOC"
286 ./rofftoc $tmp/PerlTOC.$ext.raw > $tmp/PerlTOC.tmp.man
287 run="$cmd $tmp/PerlTOC.tmp.man >$tmp/PerlTOC.$ext"
288 echo "$me: running $run"
291 # Finally, recreate the Doc, without the blank page 0
292 run="$cmd -rC1 -rD1 >$tmp/PerlDoc.$ext 2>$tmp/PerlTOC.$ext.raw"
293 echo "$me: running $run"
295 rm -f $tmp/PerlTOC.tmp.man $tmp/PerlTOC.$ext.raw
296 echo "$me: leaving you with $tmp/PerlDoc.$ext and $tmp/PerlTOC.$ext"