mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Script to generate page counts of the PostScript files.
This commit is contained in:
parent
e1feb8f2dc
commit
47f69067d5
1 changed files with 23 additions and 0 deletions
23
Doc/tools/getpagecounts
Executable file
23
Doc/tools/getpagecounts
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue