blob: 46d3a138083255c3ef20fe5d52a75c19ca383334 [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}
9
10
11cat <<EOF
12This is the PostScript version of the standard Python documentation.
13If you plan to print this, be aware that some of the documents are
14long. These files have the following page counts:
15
16EOF
17
18
19for PART in api ext lib mac ref tut ; do
20 FILE=paper-$PAPER/$PART.ps
21 PAGECOUNT=`grep '^%%Page:' $FILE | wc -l | cut -f 1 | tr -d ' '`
22 echo " $PART.ps -- $PAGECOUNT pages"
23done