diff options
author | Karl Berry <karl@freefriends.org> | 2012-03-17 23:11:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-03-17 23:11:08 +0000 |
commit | 898466bb2939d912a4168e1fb118101ef8a54d93 (patch) | |
tree | ad7ad6367169add6ce3ce196542abe6efd0e9d40 /Build/source | |
parent | 63d3000c4b397c52ad8017366f49f98a07f6a795 (diff) |
checkcites (17mar12)
git-svn-id: svn://tug.org/texlive/trunk@25678 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rwxr-xr-x | Build/source/texk/texlive/linked_scripts/checkcites/checkcites.lua | 23 |
1 files changed, 17 insertions, 6 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 |