From e7fb636eadd3ea052af31a181b5061f7f36dbfa6 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 8 Feb 2008 10:03:02 +0000 Subject: break out if we cannot find the script git-svn-id: svn://tug.org/texlive/trunk@6541 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/i386-linux/generate-fmtutil | 5 +++++ Master/bin/i386-linux/generate-language | 5 +++++ Master/bin/i386-linux/generate-updmap | 5 +++++ Master/bin/win32/generate-fmtutil.texlua | 5 +++++ Master/bin/win32/generate-language.texlua | 5 +++++ Master/bin/win32/generate-updmap.texlua | 5 +++++ 6 files changed, 30 insertions(+) (limited to 'Master') diff --git a/Master/bin/i386-linux/generate-fmtutil b/Master/bin/i386-linux/generate-fmtutil index b639dad34eb..1089cd2d921 100755 --- a/Master/bin/i386-linux/generate-fmtutil +++ b/Master/bin/i386-linux/generate-fmtutil @@ -36,6 +36,11 @@ end script=kpse.find_file(basename..".pl", "texmfscripts") +if (not(script)) then + print ("Cannot find "..basename..".pl".." using kpse, exiting!") + os.exit(1) +end + command={perlbin, script} for i=1, #arg do diff --git a/Master/bin/i386-linux/generate-language b/Master/bin/i386-linux/generate-language index 3acd87edc46..b2013a3c8ca 100755 --- a/Master/bin/i386-linux/generate-language +++ b/Master/bin/i386-linux/generate-language @@ -36,6 +36,11 @@ end script=kpse.find_file(basename..".pl", "texmfscripts") +if (not(script)) then + print ("Cannot find "..basename..".pl".." using kpse, exiting!") + os.exit(1) +end + command={perlbin, script} for i=1, #arg do diff --git a/Master/bin/i386-linux/generate-updmap b/Master/bin/i386-linux/generate-updmap index 321b385f6b9..30549144271 100755 --- a/Master/bin/i386-linux/generate-updmap +++ b/Master/bin/i386-linux/generate-updmap @@ -36,6 +36,11 @@ end script=kpse.find_file(basename..".pl", "texmfscripts") +if (not(script)) then + print ("Cannot find "..basename..".pl".." using kpse, exiting!") + os.exit(1) +end + command={perlbin, script} for i=1, #arg do diff --git a/Master/bin/win32/generate-fmtutil.texlua b/Master/bin/win32/generate-fmtutil.texlua index b639dad34eb..1089cd2d921 100755 --- a/Master/bin/win32/generate-fmtutil.texlua +++ b/Master/bin/win32/generate-fmtutil.texlua @@ -36,6 +36,11 @@ end script=kpse.find_file(basename..".pl", "texmfscripts") +if (not(script)) then + print ("Cannot find "..basename..".pl".." using kpse, exiting!") + os.exit(1) +end + command={perlbin, script} for i=1, #arg do diff --git a/Master/bin/win32/generate-language.texlua b/Master/bin/win32/generate-language.texlua index 3acd87edc46..b2013a3c8ca 100755 --- a/Master/bin/win32/generate-language.texlua +++ b/Master/bin/win32/generate-language.texlua @@ -36,6 +36,11 @@ end script=kpse.find_file(basename..".pl", "texmfscripts") +if (not(script)) then + print ("Cannot find "..basename..".pl".." using kpse, exiting!") + os.exit(1) +end + command={perlbin, script} for i=1, #arg do diff --git a/Master/bin/win32/generate-updmap.texlua b/Master/bin/win32/generate-updmap.texlua index 321b385f6b9..30549144271 100755 --- a/Master/bin/win32/generate-updmap.texlua +++ b/Master/bin/win32/generate-updmap.texlua @@ -36,6 +36,11 @@ end script=kpse.find_file(basename..".pl", "texmfscripts") +if (not(script)) then + print ("Cannot find "..basename..".pl".." using kpse, exiting!") + os.exit(1) +end + command={perlbin, script} for i=1, #arg do -- cgit v1.2.3