Skip to content

Commit

Permalink
Make this simpler; don't care about the paper size. Require that the
Browse files Browse the repository at this point in the history
files exist in the current directory.

Add "Documenting Python" to the list of documents listed.
  • Loading branch information
freddrake committed Mar 18, 1999
1 parent a0fec16 commit e3fd106
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Doc/tools/getpagecounts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,10 @@
#
# Generate a page count report of the PostScript version of the manuals.

cd `dirname $0`/..

PAPER=${PAPER:-letter}
TOTAL=0

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

echo
echo " Total page count: $TOTAL"
Expand Down

0 comments on commit e3fd106

Please sign in to comment.