summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-07-02 00:15:21 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-07-02 00:15:21 +0000
commit4b54c30ab8914451bc2aa4018629061ff7818f63 (patch)
treef4f82578843f8e529fb7a83879797bb68ec5185a /tools
parentfa4d7ccab6c575933e42b5ce5152704339316f17 (diff)
downloadmpfr-4b54c30ab8914451bc2aa4018629061ff7818f63.tar.gz
[tools/mpfrlint] Check a Texinfo rule (Section "Ending a Sentence")
with common words that end with a capital letter. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/3.1@9603 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tools')
-rwxr-xr-xtools/mpfrlint7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/mpfrlint b/tools/mpfrlint
index 5f1f0d1fb..cfd3afb79 100755
--- a/tools/mpfrlint
+++ b/tools/mpfrlint
@@ -79,6 +79,13 @@ do
echo "$file contains unprotected mpfr_printf-like function calls"
done
+# Check a Texinfo rule (Section "Ending a Sentence") with common words
+# that end with a capital letter:
+# Use '@.' instead of a period, '@!' instead of an exclamation point,
+# and '@?' instead of a question mark at the end of a sentence that
+# does end with a capital letter.
+grep -E '(LIP|MPFR?|NaN)\)?[.!?]' doc/mpfr.texi | grep -v '^\* .*::'
+
fdlv1="`sed -n '/Version / {
s/.*Version //
s/,.*//