extension_config = ".e2/extensions",
e2config = false,
global_interface_version_file = ".e2/global-version",
+ project_location_file = ".e2/project-location",
logrotate = 5, -- configurable via config.log.logrotate
_version = "e2factory, the emlix embedded build system, version " ..
buildconfig.VERSION,
end
-- write project location file
- local file = ".e2/project-location"
+ local plf = e2lib.join(p.destdir, e2lib.globals.project_location_file)
local data = string.format("%s\n", p.location)
- rc, re = eio.file_write(file, data)
+ rc, re = eio.file_write(plf, data)
if not rc then
return false, e:cat(re)
end
end
-- read .e2/proj-location
- info.project_location_config = e2lib.join(info.root, ".e2/project-location")
- local line, re = eio.file_read_line(info.project_location_config)
+ local plf = e2lib.join(info.root, e2lib.globals.project_location_file)
+ local line, re = eio.file_read_line(plf)
if not line then
return false, e:cat(re)
end
local _, _, l = string.find(line, "^%s*(%S+)%s*$")
if not l then
- return false, e:append("%s: can't parse project location",
- info.project_location_config)
+ return false, e:append("%s: can't parse project location", plf)
end
info.project_location = l
e2lib.logf(4, "project location is %s", info.project_location)