Next / Previous / Contents / Shipman's homepage

6.1. Prologue

The script starts with a “pound-bang line” to make it self-executing under Unix systems, and a comment that points the interested reader back at this documentation.

docbookindex
#!/usr/bin/env python
#================================================================
# docbookindex: Generate an ID index of DocBook section elements
#   For documentation, see:
#     http://www.nmt.edu/~shipman/soft/docbookindex/
#----------------------------------------------------------------
# Command line arguments:
#   docbookindex FILE.xml
# Writes "toc.fo", an XSL-FO file; use xep or fop to make toc.pdf.
#----------------------------------------------------------------