=head1 NAME docbook2man-spec.pl - convert DocBook RefEntries to Unix manpages =head1 SYNOPSIS The sgmlspl script from the SGMLSpm Perl module must be used to run this script. Use it like this: nsgmls some-docbook-document.sgml | sgmlspl docbook2man-spec.pl See man page or included DocBook documentation for details. =head1 DESCRIPTION This is a sgmlspl spec file that produces Unix-style man pages from DocBook RefEntry markup. =head1 COPYRIGHT Copyright (C) 1998-2001 Steve Cheng Copyright (C) 1999 Thomas Lockhart This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, please write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. =cut # $Id$ use SGMLS; # Use the SGMLS package. use SGMLS::Output; # Use stack-based output. use SGMLS::Refs; ######################################################################## # SGMLSPL script produced automatically by the script sgmlspl.pl # # Document Type: any, but processes only RefEntries # Edited by: me :) ######################################################################## $write_manpages = 0; $blank_xrefs = 0; $default_sect = "1"; $default_date = `date "+%d %B %Y"`; $cite_numeral_only = 1; while (@ARGV) { my $arg = shift @ARGV; if ($arg eq "--section") { $default_sect = shift @ARGV || die "$arg requires an argument\n"; } elsif ($arg eq "--date") { $default_date = shift @ARGV || die "$arg requires an argument\n"; } elsif ($arg eq "--lowercase") { $lowercase_names = 1; } elsif ($arg eq "--preserve-case") { $lowercase_names = 0; } elsif ($arg eq "--cite-numeral-only") { $cite_numeral_only = 1; } elsif ($arg eq "--nocite-numeral-only") { $cite_numeral_only = 0; } elsif ($arg eq "--help") { print "Usage: $0", " [ --section