summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-03-18 14:57:53 (GMT)
committerFred Drake <fdrake@acm.org>1999-03-18 14:57:53 (GMT)
commite3fd1064debb7d7d8aa94dedef6f6d8c1e7166cc (patch)
treeaeb1364ec55c0f0009955c728effeef9b661db13 /Doc
parenta0fec1637b88fd63849b1810874714d4f1d09000 (diff)
downloadcpython-e3fd1064debb7d7d8aa94dedef6f6d8c1e7166cc.zip
cpython-e3fd1064debb7d7d8aa94dedef6f6d8c1e7166cc.tar.gz
cpython-e3fd1064debb7d7d8aa94dedef6f6d8c1e7166cc.tar.bz2
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.
Diffstat (limited to 'Doc')
-rwxr-xr-xDoc/tools/getpagecounts6
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/tools/getpagecounts b/Doc/tools/getpagecounts
index e701e94..f359637 100755
--- a/Doc/tools/getpagecounts
+++ b/Doc/tools/getpagecounts
@@ -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`
}
@@ -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"