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} |
Fred Drake | dfb4e24 | 1999-02-05 20:50:59 +0000 | [diff] [blame^] | 9 | TOTAL=0 |
Fred Drake | 47f6906 | 1998-08-28 21:16:28 +0000 | [diff] [blame] | 10 | |
Fred Drake | dfb4e24 | 1999-02-05 20:50:59 +0000 | [diff] [blame^] | 11 | getpagecount() { |
| 12 | PAGECOUNT=`grep -c '^%%Page:' paper-$PAPER/$1.ps` |
| 13 | echo "$2 $1.ps ($PAGECOUNT pages)" |
| 14 | TOTAL=`expr $TOTAL + $PAGECOUNT` |
| 15 | } |
Fred Drake | 47f6906 | 1998-08-28 21:16:28 +0000 | [diff] [blame] | 16 | |
| 17 | cat <<EOF |
| 18 | This is the PostScript version of the standard Python documentation. |
| 19 | If you plan to print this, be aware that some of the documents are |
Fred Drake | dfb4e24 | 1999-02-05 20:50:59 +0000 | [diff] [blame^] | 20 | long. The following manuals are included: |
Fred Drake | 47f6906 | 1998-08-28 21:16:28 +0000 | [diff] [blame] | 21 | |
| 22 | EOF |
| 23 | |
Fred Drake | dfb4e24 | 1999-02-05 20:50:59 +0000 | [diff] [blame^] | 24 | getpagecount api "Python/C API " |
| 25 | getpagecount ext "Extending and Embedding the Python Interpreter" |
| 26 | getpagecount lib "Python Library Reference " |
| 27 | getpagecount mac "Macintosh Module Reference " |
| 28 | getpagecount ref "Python Reference Manual " |
| 29 | getpagecount tut "Python Tutorial " |
Fred Drake | 47f6906 | 1998-08-28 21:16:28 +0000 | [diff] [blame] | 30 | |
Fred Drake | dfb4e24 | 1999-02-05 20:50:59 +0000 | [diff] [blame^] | 31 | echo |
| 32 | echo " Total page count: $TOTAL" |
| 33 | |
| 34 | cat <<EOF |
| 35 | |
| 36 | |
| 37 | If you have any questions, comments, or suggestions regarding these |
| 38 | documents, please send them via email to python-docs@python.org. |
| 39 | |
| 40 | EOF |