summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/checkcites
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 /Master/texmf-dist/scripts/checkcites
parent63d3000c4b397c52ad8017366f49f98a07f6a795 (diff)
checkcites (17mar12)
git-svn-id: svn://tug.org/texlive/trunk@25678 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/checkcites')
-rwxr-xr-xMaster/texmf-dist/scripts/checkcites/checkcites.lua23
1 files changed, 17 insertions, 6 deletions
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