1998-08-28 21:16:28 +00:00
|
|
|
#! /bin/sh
|
|
|
|
# -*- Ksh -*-
|
|
|
|
#
|
|
|
|
# Generate a page count report of the PostScript version of the manuals.
|
|
|
|
|
1999-02-05 20:50:59 +00:00
|
|
|
TOTAL=0
|
1998-08-28 21:16:28 +00:00
|
|
|
|
1999-02-05 20:50:59 +00:00
|
|
|
getpagecount() {
|
1999-03-18 14:57:53 +00:00
|
|
|
PAGECOUNT=`grep -c '^%%Page:' $1.ps`
|
1999-02-05 20:50:59 +00:00
|
|
|
echo "$2 $1.ps ($PAGECOUNT pages)"
|
|
|
|
TOTAL=`expr $TOTAL + $PAGECOUNT`
|
|
|
|
}
|
1998-08-28 21:16:28 +00:00
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
This is the PostScript version of the standard Python documentation.
|
|
|
|
If you plan to print this, be aware that some of the documents are
|
1999-02-05 20:50:59 +00:00
|
|
|
long. The following manuals are included:
|
1998-08-28 21:16:28 +00:00
|
|
|
|
|
|
|
EOF
|
|
|
|
|
1999-02-05 20:50:59 +00:00
|
|
|
getpagecount api "Python/C API "
|
|
|
|
getpagecount ext "Extending and Embedding the Python Interpreter"
|
|
|
|
getpagecount lib "Python Library Reference "
|
|
|
|
getpagecount mac "Macintosh Module Reference "
|
|
|
|
getpagecount ref "Python Reference Manual "
|
|
|
|
getpagecount tut "Python Tutorial "
|
1999-03-18 14:57:53 +00:00
|
|
|
getpagecount doc "Documenting Python "
|
1998-08-28 21:16:28 +00:00
|
|
|
|
1999-02-05 20:50:59 +00:00
|
|
|
echo
|
|
|
|
echo " Total page count: $TOTAL"
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
|
|
|
|
If you have any questions, comments, or suggestions regarding these
|
|
|
|
documents, please send them via email to python-docs@python.org.
|
|
|
|
|
|
|
|
EOF
|