]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make this simpler; don't care about the paper size. Require that the
authorFred Drake <fdrake@acm.org>
Thu, 18 Mar 1999 14:57:53 +0000 (14:57 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 18 Mar 1999 14:57:53 +0000 (14:57 +0000)
files exist in the current directory.

Add "Documenting Python" to the list of documents listed.

Doc/tools/getpagecounts

index e701e941c7091f65bc733c68ea95ddc7ef9d2f44..f3596375df980d049678f1d86e1ae600880d9880 100755 (executable)
@@ -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"