Skip to content

Commit e3fd106

Browse files
committed
Make this simpler; don't care about the paper size. Require that the
files exist in the current directory. Add "Documenting Python" to the list of documents listed.
1 parent a0fec16 commit e3fd106

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Doc/tools/getpagecounts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
#
44
# Generate a page count report of the PostScript version of the manuals.
55

6-
cd `dirname $0`/..
7-
8-
PAPER=${PAPER:-letter}
96
TOTAL=0
107

118
getpagecount() {
12-
PAGECOUNT=`grep -c '^%%Page:' paper-$PAPER/$1.ps`
9+
PAGECOUNT=`grep -c '^%%Page:' $1.ps`
1310
echo "$2 $1.ps ($PAGECOUNT pages)"
1411
TOTAL=`expr $TOTAL + $PAGECOUNT`
1512
}
@@ -27,6 +24,7 @@ getpagecount lib "Python Library Reference "
2724
getpagecount mac "Macintosh Module Reference "
2825
getpagecount ref "Python Reference Manual "
2926
getpagecount tut "Python Tutorial "
27+
getpagecount doc "Documenting Python "
3028

3129
echo
3230
echo " Total page count: $TOTAL"

0 commit comments

Comments
 (0)