e2config = false,
global_interface_version_file = ".e2/global-version",
project_location_file = ".e2/project-location",
+ e2version_file = ".e2/e2version",
logrotate = 5, -- configurable via config.log.logrotate
_version = "e2factory, the emlix embedded build system, version " ..
buildconfig.VERSION,
{ filename = "proj/env", content=env },
{ filename = "proj/config", content=pconfig },
{ filename = ".e2/syntax", content=syntax },
- { filename = ".e2/e2version", content=e2version },
+ { filename = e2lib.globals.e2version_file, content=e2version },
{ filename = ".gitignore", content=gitignore },
}
for _,f in ipairs(files) do
extensions = {} -- empty list
end
- local s, re = eio.file_read_line(".e2/e2version")
+ local ef = e2lib.join(root, e2lib.globals.e2version_file)
+ local s, re = eio.file_read_line(ef)
local branch, tag = s:match("(%S+) (%S+)")
if not branch or not tag then
e:cat(re)
if opts.release then
local version_table, re = e2lib.parse_e2versionfile(
- e2lib.join(info.root, ".e2/e2version"))
+ e2lib.join(info.root, e2lib.globals.e2version_file))
if not version_table then
return false, re
end
end
if e2option.opts["check"] then
- local f = ".e2/e2version"
+ local f = e2lib.join(info.root, e2lib.globals.e2version_file)
local v, re = e2lib.parse_e2versionfile(f)
if not v then
return false, re