diff options
author | Fred Drake <fdrake@acm.org> | 1998-08-28 21:16:28 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-08-28 21:16:28 (GMT) |
commit | 47f69067d5208d0839e1f79d8bb3348c4ddfd255 (patch) | |
tree | 6b2c33761a5cf68aaa5f1170e1ec6291f99744a3 /Doc/tools/getpagecounts | |
parent | e1feb8f2dcf4e3aea4b05c2c47d084497a5626c3 (diff) | |
download | cpython-47f69067d5208d0839e1f79d8bb3348c4ddfd255.zip cpython-47f69067d5208d0839e1f79d8bb3348c4ddfd255.tar.gz cpython-47f69067d5208d0839e1f79d8bb3348c4ddfd255.tar.bz2 |
Script to generate page counts of the PostScript files.
Diffstat (limited to 'Doc/tools/getpagecounts')
-rwxr-xr-x | Doc/tools/getpagecounts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Doc/tools/getpagecounts b/Doc/tools/getpagecounts new file mode 100755 index 0000000..46d3a13 --- /dev/null +++ b/Doc/tools/getpagecounts @@ -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 |