blob: e701e941c7091f65bc733c68ea95ddc7ef9d2f44 [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
6cd `dirname $0`/..
7
8PAPER=${PAPER:-letter}
Fred Drakedfb4e241999-02-05 20:50:59 +00009TOTAL=0
Fred Drake47f69061998-08-28 21:16:28 +000010
Fred Drakedfb4e241999-02-05 20:50:59 +000011getpagecount() {
12 PAGECOUNT=`grep -c '^%%Page:' paper-$PAPER/$1.ps`
13 echo "$2 $1.ps ($PAGECOUNT pages)"
14 TOTAL=`expr $TOTAL + $PAGECOUNT`
15}
Fred Drake47f69061998-08-28 21:16:28 +000016
17cat <<EOF
18This is the PostScript version of the standard Python documentation.
19If you plan to print this, be aware that some of the documents are
Fred Drakedfb4e241999-02-05 20:50:59 +000020long. The following manuals are included:
Fred Drake47f69061998-08-28 21:16:28 +000021
22EOF
23
Fred Drakedfb4e241999-02-05 20:50:59 +000024getpagecount api "Python/C API "
25getpagecount ext "Extending and Embedding the Python Interpreter"
26getpagecount lib "Python Library Reference "
27getpagecount mac "Macintosh Module Reference "
28getpagecount ref "Python Reference Manual "
29getpagecount tut "Python Tutorial "
Fred Drake47f69061998-08-28 21:16:28 +000030
Fred Drakedfb4e241999-02-05 20:50:59 +000031echo
32echo " Total page count: $TOTAL"
33
34cat <<EOF
35
36
37If you have any questions, comments, or suggestions regarding these
38documents, please send them via email to python-docs@python.org.
39
40EOF