blob: 8f23c6a9bdf54d0acac906fefe8ae318554e11dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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]
|