summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hvextern/hvextern.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-06-20 21:07:45 +0000
committerKarl Berry <karl@freefriends.org>2022-06-20 21:07:45 +0000
commite1088ee8b152b286a7f2898ebacbc2d97c12c70e (patch)
tree4b85c7a41c3406221091052855bb987c6ea0875d /Master/texmf-dist/tex/latex/hvextern/hvextern.lua
parent443943db3d0d2c613ead9c30d50b49bb1419e805 (diff)
hvextern (20jun22)
git-svn-id: svn://tug.org/texlive/trunk@63664 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hvextern/hvextern.lua')
-rw-r--r--Master/texmf-dist/tex/latex/hvextern/hvextern.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/hvextern/hvextern.lua b/Master/texmf-dist/tex/latex/hvextern/hvextern.lua
new file mode 100644
index 00000000000..8f23c6a9bdf
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/hvextern/hvextern.lua
@@ -0,0 +1,28 @@
+-----------------------------------------------------------------------
+-- FILE: hvextern.lua
+-- DESCRIPTION: check two files for identical code
+-- REQUIREMENTS:
+-- AUTHOR: Herbert Voß
+-- LICENSE: LPPL1.3
+--
+-- $Id: hvextern.lua 578 2022-06-20 16:41:45Z herbert $
+-----------------------------------------------------------------------
+kpse.set_program_name("luatex")
+
+function GetFileContents(f1,f2)
+ local NewContents, OldContents
+ local File = io.open(f1)
+ if File then
+ NewContents = File:read('*all')
+ File:close()
+ end
+ local File = io.open(f2)
+ if File then
+ OldContents = File:read('*all')
+ File:close()
+ end
+ return NewContents == OldContents
+end
+
+--local f1 = arg[1]
+--local f2 = arg[2] \ No newline at end of file