Script to generate page counts of the PostScript files.

This commit is contained in:
Fred Drake 1998-08-28 21:16:28 +00:00
parent e1feb8f2dc
commit 47f69067d5

23
Doc/tools/getpagecounts Executable file
View file

@ -0,0 +1,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 '^%%Page:' $FILE | wc -l | cut -f 1 | tr -d ' '`
echo " $PART.ps -- $PAGECOUNT pages"
done