Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
2.6 KiB

  1. @rem = '--*-Perl-*--
  2. @echo off
  3. if "%OS%" == "Windows_NT" goto WinNT
  4. perl -x -S "%0" %1 %2 %3 %4 %5 %6 %7 %8 %9
  5. goto endofperl
  6. :WinNT
  7. perl -x -S "%0" %*
  8. if NOT "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto endofperl
  9. if %errorlevel% == 9009 echo You do not have Perl in your PATH.
  10. goto endofperl
  11. @rem ';
  12. #!perl
  13. #line 14
  14. eval 'exec P:\Apps\ActivePerl\temp\bin\MSWin32-x86-object\perl.exe -S $0 ${1+"$@"}'
  15. if $running_under_some_shell;
  16. =pod
  17. =head1 NAME
  18. pod2html - convert .pod files to .html files
  19. =head1 SYNOPSIS
  20. pod2html --help --htmlroot=<name> --infile=<name> --outfile=<name>
  21. --podpath=<name>:...:<name> --podroot=<name>
  22. --libpods=<name>:...:<name> --recurse --norecurse --verbose
  23. --index --noindex --title=<name>
  24. =head1 DESCRIPTION
  25. Converts files from pod format (see L<perlpod>) to HTML format.
  26. =head1 ARGUMENTS
  27. pod2html takes the following arguments:
  28. =over 4
  29. =item help
  30. --help
  31. Displays the usage message.
  32. =item htmlroot
  33. --htmlroot=name
  34. Sets the base URL for the HTML files. When cross-references are made,
  35. the HTML root is prepended to the URL.
  36. =item infile
  37. --infile=name
  38. Specify the pod file to convert. Input is taken from STDIN if no
  39. infile is specified.
  40. =item outfile
  41. --outfile=name
  42. Specify the HTML file to create. Output goes to STDOUT if no outfile
  43. is specified.
  44. =item podroot
  45. --podroot=name
  46. Specify the base directory for finding library pods.
  47. =item podpath
  48. --podpath=name:...:name
  49. Specify which subdirectories of the podroot contain pod files whose
  50. HTML converted forms can be linked-to in cross-references.
  51. =item libpods
  52. --libpods=name:...:name
  53. List of page names (eg, "perlfunc") which contain linkable C<=item>s.
  54. =item netscape
  55. --netscape
  56. Use Netscape HTML directives when applicable.
  57. =item nonetscape
  58. --nonetscape
  59. Do not use Netscape HTML directives (default).
  60. =item index
  61. --index
  62. Generate an index at the top of the HTML file (default behaviour).
  63. =item noindex
  64. --noindex
  65. Do not generate an index at the top of the HTML file.
  66. =item recurse
  67. --recurse
  68. Recurse into subdirectories specified in podpath (default behaviour).
  69. =item norecurse
  70. --norecurse
  71. Do not recurse into subdirectories specified in podpath.
  72. =item title
  73. --title=title
  74. Specify the title of the resulting HTML file.
  75. =item verbose
  76. --verbose
  77. Display progress messages.
  78. =back
  79. =head1 AUTHOR
  80. Tom Christiansen, E<lt>[email protected]<gt>.
  81. =head1 BUGS
  82. See L<Pod::Html> for a list of known bugs in the translator.
  83. =head1 SEE ALSO
  84. L<perlpod>, L<Pod::Html>
  85. =head1 COPYRIGHT
  86. This program is distributed under the Artistic License.
  87. =cut
  88. use Pod::Html;
  89. pod2html @ARGV;
  90. __END__
  91. :endofperl