Fred Drake | 47f6906 | 1998-08-28 21:16:28 +0000 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | # -*- Ksh -*- |
| 3 | # |
| 4 | # Generate a page count report of the PostScript version of the manuals. |
| 5 | |
| 6 | cd `dirname $0`/.. |
| 7 | |
| 8 | PAPER=${PAPER:-letter} |
| 9 | |
| 10 | |
| 11 | cat <<EOF |
| 12 | This is the PostScript version of the standard Python documentation. |
| 13 | If you plan to print this, be aware that some of the documents are |
| 14 | long. These files have the following page counts: |
| 15 | |
| 16 | EOF |
| 17 | |
| 18 | |
| 19 | for 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" |
| 23 | done |