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