summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvextern/lualatex/hvextern.lua
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hvextern/lualatex/hvextern.lua')
-rw-r--r--macros/latex/contrib/hvextern/lualatex/hvextern.lua28
1 files changed, 28 insertions, 0 deletions
diff --git a/macros/latex/contrib/hvextern/lualatex/hvextern.lua b/macros/latex/contrib/hvextern/lualatex/hvextern.lua
new file mode 100644
index 0000000000..8f23c6a9bd
--- /dev/null
+++ b/macros/latex/contrib/hvextern/lualatex/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