diff options
author | Karl Berry <karl@freefriends.org> | 2008-05-19 22:30:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-05-19 22:30:41 +0000 |
commit | a27656dee171ae94012a73bf3933e7d138347c4f (patch) | |
tree | a8b8048d8263eae8f4e9f5d84bc2113fdcaad24b /Build | |
parent | 1f2a8f123983d4c33360a062dfda1a974d3049e5 (diff) |
rm wordcount and bin-wordcount, nonfree and we have texcount
git-svn-id: svn://tug.org/texlive/trunk@8240 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/texlive/ChangeLog | 6 | ||||
-rw-r--r-- | Build/source/texk/texlive/Makefile.in | 2 | ||||
-rw-r--r-- | Build/source/texk/texlive/wordcount.sh | 72 |
3 files changed, 7 insertions, 73 deletions
diff --git a/Build/source/texk/texlive/ChangeLog b/Build/source/texk/texlive/ChangeLog index 42a0c18a9da..e97b984e6b9 100644 --- a/Build/source/texk/texlive/ChangeLog +++ b/Build/source/texk/texlive/ChangeLog @@ -1,3 +1,9 @@ +2008-05-20 Karl Berry <karl@tug.org> + + * wordcount.sh: remove, since we have texcount (TeXcount.pl) + and the license of wordcount.sh is problematic. + * Makefile.in (LIVESCRIPTS): remove wordcount.sh + 2008-05-19 Karl Berry <karl@tug.org> * Makefile.in (LIVESCRIPTS): remove pdfthumb, we want the one in diff --git a/Build/source/texk/texlive/Makefile.in b/Build/source/texk/texlive/Makefile.in index ee7fe164d1f..09b2bbb85cf 100644 --- a/Build/source/texk/texlive/Makefile.in +++ b/Build/source/texk/texlive/Makefile.in @@ -7,7 +7,7 @@ kpse_include ../make/paths.mk kpse_include ../make/common.mk kpse_include ../make/programs.mk -LIVESCRIPTS = simpdftex ebong giftopng wordcount.sh +LIVESCRIPTS = simpdftex ebong giftopng # These scripts do not exist here in /source/ at all, the instances # in texmf are the masters (except when it is CTAN). diff --git a/Build/source/texk/texlive/wordcount.sh b/Build/source/texk/texlive/wordcount.sh deleted file mode 100644 index 91252791a53..00000000000 --- a/Build/source/texk/texlive/wordcount.sh +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh -# wordcount.sh 1.2 Copyright 2000/02/21 Michael John Downes -# This script has no restrictions on its use, distribution, or sale. -# -# This is a Unix Bourne shell script that counts the characters and -# spaces in a LaTeX document by running it through LaTeX using -# wordcount.tex, and then counting the lines in the resulting -# wordcount.log file that match a special pattern. It assumes that you -# have a program "grep" with a -c option meaning "Report the number of -# matching lines". To use perl or some other tool instead of grep, -# redefine $COUNT in some suitable way, below. -# -# The characters that are counted with this method are actual font -# characters in the page body (excluding running heads): in math, each -# subscript and superscript character is counted separately, even when -# they appear one over the other; and so are the separate combining -# pieces used to make large delimiters. Interword spaces are counted as -# separate characters, and so are the spaces around mathrel symbols in -# math formulas (equal signs and the like)---but not the spaces around -# mathbin symbols (plus, minus, and the like). -# -# You can count words by dividing the character count by 5 (or -# whatever), or by counting the occurrences of interword spaces. The -# latter method (illustrated here) is highly accurate at counting the -# actual number of words---until tables or math formulas enter the -# picture. In the case of tables, the number of words will tend to be -# overestimated because tabskip glue, counted as an interword space, -# appears on both sides of each table cell. (Not counting the tabskip -# glue at all would result in an underestimate, and the underestimate -# would tend to be slightly less accurate than the overestimate that we -# have chosen to do.) -# -# And of course, in the case of math formulas, how do you define what is -# a "word"? - -SCRIPT=`basename $0` -LOGFILE=wordcount.log -COUNT="grep -c" -LATEX=latex - -die () { - echo "$@ was apparently unsuccessful." - exit 1 -} - -no_files_msg () { - echo "$SCRIPT: At least one file name must be supplied" \ - "on the command line." - exit 1 -} - -case X$1 in - X) no_files_msg ;; - *) : ;; -esac - -for f in "$@" -do - # Since \? is not defined by LaTeX itself, this use via \csname causes - # it to be defined as \relax, and it then serves as a filename - # terminator. And within wordcount.tex if \? is found to be no longer - # undefined, certain messages are suppressed. - echo "$f" | $LATEX 'wordcount.tex\csname ?\endcsname' || die "LaTeX run" - # Count interword spaces and end-of-paragraph spaces - words=`$COUNT '3[.]0863[35]' $LOGFILE` || die "Log search" - # Count nonspace characters and interword spaces - chars=`$COUNT '3[.]0863[23]' $LOGFILE` || die "Log search" - # If you want to see what the log file looks like, comment out the - # following line: - rm $LOGFILE - echo "$f contains $chars characters and $words words." -done |