blob: f3596375df980d049678f1d86e1ae600880d9880 [file] [log] [blame]
Fred Drake47f69061998-08-28 21:16:28 +00001#! /bin/sh
2# -*- Ksh -*-
3#
4# Generate a page count report of the PostScript version of the manuals.
5
Fred Drakedfb4e241999-02-05 20:50:59 +00006TOTAL=0
Fred Drake47f69061998-08-28 21:16:28 +00007
Fred Drakedfb4e241999-02-05 20:50:59 +00008getpagecount() {
Fred Drakee3fd1061999-03-18 14:57:53 +00009 PAGECOUNT=`grep -c '^%%Page:' $1.ps`
Fred Drakedfb4e241999-02-05 20:50:59 +000010 echo "$2 $1.ps ($PAGECOUNT pages)"
11 TOTAL=`expr $TOTAL + $PAGECOUNT`
12}
Fred Drake47f69061998-08-28 21:16:28 +000013
14cat <<EOF
15This is the PostScript version of the standard Python documentation.
16If you plan to print this, be aware that some of the documents are
Fred Drakedfb4e241999-02-05 20:50:59 +000017long. The following manuals are included:
Fred Drake47f69061998-08-28 21:16:28 +000018
19EOF
20
Fred Drakedfb4e241999-02-05 20:50:59 +000021getpagecount api "Python/C API "
22getpagecount ext "Extending and Embedding the Python Interpreter"
23getpagecount lib "Python Library Reference "
24getpagecount mac "Macintosh Module Reference "
25getpagecount ref "Python Reference Manual "
26getpagecount tut "Python Tutorial "
Fred Drakee3fd1061999-03-18 14:57:53 +000027getpagecount doc "Documenting Python "
Fred Drake47f69061998-08-28 21:16:28 +000028
Fred Drakedfb4e241999-02-05 20:50:59 +000029echo
30echo " Total page count: $TOTAL"
31
32cat <<EOF
33
34
35If you have any questions, comments, or suggestions regarding these
36documents, please send them via email to python-docs@python.org.
37
38EOF