Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fec16 commit e3fd106Copy full SHA for e3fd106
1 file changed
Doc/tools/getpagecounts
@@ -3,13 +3,10 @@
3
#
4
# Generate a page count report of the PostScript version of the manuals.
5
6
-cd `dirname $0`/..
7
-
8
-PAPER=${PAPER:-letter}
9
TOTAL=0
10
11
getpagecount() {
12
- PAGECOUNT=`grep -c '^%%Page:' paper-$PAPER/$1.ps`
+ PAGECOUNT=`grep -c '^%%Page:' $1.ps`
13
echo "$2 $1.ps ($PAGECOUNT pages)"
14
TOTAL=`expr $TOTAL + $PAGECOUNT`
15
}
@@ -27,6 +24,7 @@ getpagecount lib "Python Library Reference "
27
24
getpagecount mac "Macintosh Module Reference "
28
25
getpagecount ref "Python Reference Manual "
29
26
getpagecount tut "Python Tutorial "
+getpagecount doc "Documenting Python "
30
31
echo
32
echo " Total page count: $TOTAL"
0 commit comments