summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-03-17 23:11:08 +0000
committerKarl Berry <karl@freefriends.org>2012-03-17 23:11:08 +0000
commit898466bb2939d912a4168e1fb118101ef8a54d93 (patch)
treead7ad6367169add6ce3ce196542abe6efd0e9d40
parent63d3000c4b397c52ad8017366f49f98a07f6a795 (diff)
checkcites (17mar12)
git-svn-id: svn://tug.org/texlive/trunk@25678 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/checkcites/checkcites.lua23
-rw-r--r--Master/texmf-dist/doc/support/checkcites/README4
-rw-r--r--Master/texmf-dist/doc/support/checkcites/checkcites-doc.pdfbin219757 -> 219424 bytes
-rw-r--r--Master/texmf-dist/doc/support/checkcites/checkcites-doc.tex10
-rwxr-xr-xMaster/texmf-dist/scripts/checkcites/checkcites.lua23
5 files changed, 41 insertions, 19 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/checkcites/checkcites.lua b/Build/source/texk/texlive/linked_scripts/checkcites/checkcites.lua
index c2271f28cc4..8a6b83d6550 100755
--- a/Build/source/texk/texlive/linked_scripts/checkcites/checkcites.lua
+++ b/Build/source/texk/texlive/linked_scripts/checkcites/checkcites.lua
@@ -22,8 +22,12 @@
-- ******************************************************************
-- version and date, to be updated on each release/commit
-VERSION = "1.0g"
-DATE = "March 7, 2012"
+VERSION = "1.0h"
+DATE = "March 16, 2012"
+
+-- globals
+-- warning about \citation{*}
+globalAsteriskWarning = true
-- The following code adds a 'split' function to the string type,
-- thanks to the codebase available here:
@@ -189,11 +193,18 @@ function getDataFromAuxFile(theAuxFile)
-- found a '*'
else
- -- show message
- print("I found a '*' citation, which means that all references will be used.\nI'm afraid I have nothing to do now.")
+ -- check if warning is still valid, that is,
+ -- if not displayed yet
+ if globalAsteriskWarning then
+
+ -- show message
+ print("Warning: '\\nocite{*}' found, I'll do the check nonetheless.\n")
+
+ -- warning already displayed, so
+ -- set flag to false
+ globalAsteriskWarning = false
- -- and abort the script
- os.exit()
+ end
end
diff --git a/Master/texmf-dist/doc/support/checkcites/README b/Master/texmf-dist/doc/support/checkcites/README
index 37a2b00d74c..05d028bbf19 100644
--- a/Master/texmf-dist/doc/support/checkcites/README
+++ b/Master/texmf-dist/doc/support/checkcites/README
@@ -1,5 +1,5 @@
-checkcites.lua -- Version 1.0g from March 7, 2012.
-==================================================
+checkcites.lua -- Version 1.0h from March 16, 2012.
+===================================================
License
-------
diff --git a/Master/texmf-dist/doc/support/checkcites/checkcites-doc.pdf b/Master/texmf-dist/doc/support/checkcites/checkcites-doc.pdf
index c99f2d71d52..878a1b6bc64 100644
--- a/Master/texmf-dist/doc/support/checkcites/checkcites-doc.pdf
+++ b/Master/texmf-dist/doc/support/checkcites/checkcites-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/support/checkcites/checkcites-doc.tex b/Master/texmf-dist/doc/support/checkcites/checkcites-doc.tex
index e520b1085f0..90975c24868 100644
--- a/Master/texmf-dist/doc/support/checkcites/checkcites-doc.tex
+++ b/Master/texmf-dist/doc/support/checkcites/checkcites-doc.tex
@@ -15,7 +15,7 @@
\newcommand{\checkcites}{\texttt{checkcites}}
\newcommand{\email}[1]{\small\texttt{#1}}
-\newcommand{\version}{Version 1.0g from March 7, 2012.}
+\newcommand{\version}{Version 1.0h from March 16, 2012.}
\newenvironment{infoblock}[1]
{\par\addvspace{\medskipamount}
@@ -79,9 +79,9 @@ values removed --~in other words, the table becomes a set. Let's call
$A$ the set of citations.
\begin{infoblock}{Attention!}
-If \verb|\citation{*}| is found, the script ends, mainly because all
-citations will be used in this case. We opted for ending the script
-instead of ignoring this step.
+If \verb|\citation{*}| is found, \checkcites\ will issue a message
+telling that \verb|\nocite{*}| is in the \verb|.tex| document, but
+the script will do the check nonetheless.
\end{infoblock}
At the same time \checkcites\ also looks for bibliography data, in the
@@ -101,7 +101,7 @@ table, the script will look for entries like \verb|@BOOK|,
\verb|@ARTICLE| and so forth --~we actually use pattern matching for
this~-- and add their identifiers to a table. The script treats all
\verb|.bib| files as if they were only one. After all files have been
-analyzed and all entries identifiers extracted, the table has all
+analyzed and all entries' identifiers extracted, the table has all
duplicate values removed. Let's call $B$ the set of bibliography
entries.
diff --git a/Master/texmf-dist/scripts/checkcites/checkcites.lua b/Master/texmf-dist/scripts/checkcites/checkcites.lua
index c2271f28cc4..8a6b83d6550 100755
--- a/Master/texmf-dist/scripts/checkcites/checkcites.lua
+++ b/Master/texmf-dist/scripts/checkcites/checkcites.lua
@@ -22,8 +22,12 @@
-- ******************************************************************
-- version and date, to be updated on each release/commit
-VERSION = "1.0g"
-DATE = "March 7, 2012"
+VERSION = "1.0h"
+DATE = "March 16, 2012"
+
+-- globals
+-- warning about \citation{*}
+globalAsteriskWarning = true
-- The following code adds a 'split' function to the string type,
-- thanks to the codebase available here:
@@ -189,11 +193,18 @@ function getDataFromAuxFile(theAuxFile)
-- found a '*'
else
- -- show message
- print("I found a '*' citation, which means that all references will be used.\nI'm afraid I have nothing to do now.")
+ -- check if warning is still valid, that is,
+ -- if not displayed yet
+ if globalAsteriskWarning then
+
+ -- show message
+ print("Warning: '\\nocite{*}' found, I'll do the check nonetheless.\n")
+
+ -- warning already displayed, so
+ -- set flag to false
+ globalAsteriskWarning = false
- -- and abort the script
- os.exit()
+ end
end