summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-07-16 20:03:11 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-07-16 20:03:11 +0200
commit95c6d7f9eefcac7a3fd042917df15166935d690d (patch)
tree5e9f4d685412fc87278819d4f11ef1ed22feef37 /scripts
parentc452686165c1e5233825eca0878aabb9ad4922f6 (diff)
downloadluaotfload-95c6d7f9eefcac7a3fd042917df15166935d690d.tar.gz
[status] don’t write file subpaths to status file
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mkstatus5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mkstatus b/scripts/mkstatus
index 15cb97c..802b2cd 100755
--- a/scripts/mkstatus
+++ b/scripts/mkstatus
@@ -128,7 +128,7 @@ hash_all = function (list, acc)
local finfo = list[#list]
list[#list] = nil
if finfo then
- local fpath
+ local fpath, fname
if type (finfo) == "table" then
local d, f = finfo [1], finfo [2]
if lfs.isdir (d) then
@@ -136,6 +136,7 @@ hash_all = function (list, acc)
else
fpath = f
end
+ fname = f
else
fpath = finfo
end
@@ -149,7 +150,7 @@ hash_all = function (list, acc)
iowrite (sum)
iowrite "\"\n"
end
- acc[#acc+1] = { fpath, sum }
+ acc[#acc+1] = { fname, sum }
return hash_all (list, acc)
end
return acc