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/local/man/man1
18 test -d $libdir || libdir=/usr/local/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
39 $mandir/perllocale.1 \
44 $mandir/perlmodlib.1 \
79 $libdir/diagnostics.3 \
90 $libdir/AnyDBM_File.3 \
91 $libdir/AutoLoader.3 \
98 $libdir/Devel::SelfStubber.3 \
99 $libdir/DynaLoader.3 \
103 $libdir/ExtUtils::Embed.3 \
104 $libdir/ExtUtils::Install.3 \
105 $libdir/ExtUtils::Liblist.3 \
106 $libdir/ExtUtils::MakeMaker.3 \
107 $libdir/ExtUtils::Manifest.3 \
108 $libdir/ExtUtils::Mkbootstrap.3 \
109 $libdir/ExtUtils::Mksymlists.3 \
111 $libdir/File::Basename.3 \
112 $libdir/File::CheckTree.3 \
113 $libdir/File::Copy.3 \
114 $libdir/File::Compare.3 \
115 $libdir/File::Find.3 \
116 $libdir/File::Path.3 \
117 $libdir/File::stat.3 \
118 $libdir/FileCache.3 \
119 $libdir/FileHandle.3 \
121 $libdir/Getopt::Long.3 \
122 $libdir/Getopt::Std.3 \
123 $libdir/I18N::Collate.3 \
126 $libdir/IO::Handle.3 \
128 $libdir/IO::Seekable.3 \
129 $libdir/IO::Select.3 \
130 $libdir/IO::Socket.3 \
131 $libdir/IPC::Open2.3 \
132 $libdir/IPC::Open3.3 \
133 $libdir/Math::BigFloat.3 \
134 $libdir/Math::BigInt.3 \
135 $libdir/Math::Complex.3 \
136 $libdir/Math::Trig.3 \
137 $libdir/Net::Ping.3 \
138 $libdir/Net::hostent.3 \
139 $libdir/Net::netent.3 \
140 $libdir/Net::protoent.3 \
141 $libdir/Net::servent.3 \
144 $libdir/Pod::Text.3 \
146 $libdir/Search::Dict.3 \
147 $libdir/SelectSaver.3 \
148 $libdir/SelfLoader.3 \
152 $libdir/Sys::Hostname.3 \
153 $libdir/Sys::Syslog.3 \
154 $libdir/Term::Cap.3 \
155 $libdir/Term::Complete.3 \
156 $libdir/Test::Harness.3 \
157 $libdir/Text::Abbrev.3 \
158 $libdir/Text::ParseWords.3 \
159 $libdir/Text::Soundex.3 \
160 $libdir/Text::Tabs.3 \
161 $libdir/Tie::Hash.3 \
162 $libdir/Tie::RefHash.3 \
163 $libdir/Tie::Scalar.3 \
164 $libdir/Tie::SubstrHash.3 \
165 $libdir/Time::Local.3 \
166 $libdir/Time::gmtime.3 \
167 $libdir/Time::localtime.3 \
169 $libdir/UNIVERSAL.3 \
170 $libdir/User::grent.3 \
171 $libdir/User::pwent.3 | \
172 perl -ne 'map { -r && print "$_ " } split'`
174 # Bypass internal shell buffer limit -- can't use case
175 if perl -e '$a = shift; exit($a =~ m|/|)' $toroff; then
176 echo "$me: empty file list -- did you run install?" >&2
180 #psroff -t -man -rC1 -rD1 -rF1 > $tmp/PerlDoc.ps 2>$tmp/PerlTOC.raw
181 #nroff -man -rC1 -rD1 -rF1 > $tmp/PerlDoc.txt 2>$tmp/PerlTOC.nr.raw
183 run="$cmd -rC1 -rD1 -rF1 >$tmp/PerlDoc.$ext 2>$tmp/PerlTOC.$ext.raw"
184 echo "$me: running $run"
186 echo "$me: parsing TOC"
187 ./rofftoc $tmp/PerlTOC.$ext.raw > $tmp/PerlTOC.tmp.man
188 run="$cmd $tmp/PerlTOC.tmp.man >$tmp/PerlTOC.$ext"
189 echo "$me: running $run"
191 rm -f $tmp/PerlTOC.tmp.man $tmp/PerlTOC.$ext.raw
192 echo "$me: leaving you with $tmp/PerlDoc.$ext and $tmp/PerlTOC.$ext"