diff options
| author | Dan Engelbrecht <[email protected]> | 2022-06-15 14:41:43 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-06-15 14:41:43 +0200 |
| commit | f8c9be8e34046d80ef85d7254c03c5b244096255 (patch) | |
| tree | 63a17141ce4e799e9cc0b2cef5eb8287c6635e04 | |
| parent | read VERSION.txt in zencore:on_load (diff) | |
| download | zen-f8c9be8e34046d80ef85d7254c03c5b244096255.tar.xz zen-f8c9be8e34046d80ef85d7254c03c5b244096255.zip | |
No prefix in VERSION.txt
| -rw-r--r-- | version.txt | 2 | ||||
| -rw-r--r-- | zencore/xmake.lua | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/version.txt b/version.txt index e3ff92d1e..4c24985ed 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v0.1.4-pre0 +0.1.4-pre0 diff --git a/zencore/xmake.lua b/zencore/xmake.lua index 1e7a06080..3f78be99c 100644 --- a/zencore/xmake.lua +++ b/zencore/xmake.lua @@ -4,11 +4,9 @@ target('zencore') set_kind("static") add_headerfiles("**.h") add_configfiles("include/zencore/config.h.in") - add_configfiles("VERSION.txt", {onlycopy = true}) on_load(function (target) local version = io.readfile("VERSION.txt") - version = version:match'^%s*v(.*%S)' or '' - target:set("version", version, { build = "%Y%m%d%H%M" }) + target:set("version", version:trim(), {build = "%Y%m%d%H%M"}) end) set_configdir("include/zencore") add_files("**.cpp") |