From 898466bb2939d912a4168e1fb118101ef8a54d93 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 17 Mar 2012 23:11:08 +0000 Subject: checkcites (17mar12) git-svn-id: svn://tug.org/texlive/trunk@25678 c570f23f-e606-0410-a88d-b1316a301751 --- .../linked_scripts/checkcites/checkcites.lua | 23 ++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'Build') 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 -- cgit v1.2.3