summaryrefslogtreecommitdiffstats
path: root/Doc/tools/getpagecounts
blob: 7ede6b8959526b43eedf95984e12f1a6da8a0fc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh
#  -*- Ksh -*-
#
# Generate a page count report of the PostScript version of the manuals.

cd `dirname $0`/..

PAPER=${PAPER:-letter}


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
long.  These files have the following page counts:

EOF


for PART in api ext lib mac ref tut ; do
    FILE=paper-$PAPER/$PART.ps
    PAGECOUNT=`grep -c '^%%Page:' $FILE`
    echo "	$PART.ps -- $PAGECOUNT pages"
done