diff options
| author | ruki <[email protected]> | 2024-06-14 22:39:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-06-14 22:39:06 +0800 |
| commit | 44daa72100eff20fca36cefe898c86306e5651de (patch) | |
| tree | fef474f5bac5dddf568ce6d3dc82a6e8dda55884 /xmake/plugins/pack/deb/main.lua | |
| parent | ff6a2cbe45b52d618e8f2a71f4579d43a980accb (diff) | |
improve debian copyright
Diffstat (limited to 'xmake/plugins/pack/deb/main.lua')
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua index 8a470af33..91aa55add 100644 --- a/xmake/plugins/pack/deb/main.lua +++ b/xmake/plugins/pack/deb/main.lua @@ -42,6 +42,13 @@ end -- get specvars function _get_specvars(package) local specvars = table.clone(package:specvars()) + local datestr = os.iorunv("date", {"-u", "+%a, %d %b %Y %H:%M:%S +0000"}, {envs = {LC_TIME = "en_US"}}) + if datestr then + datestr = datestr:trim() + end + specvars.PACKAGE_DATE = datestr or "" + local author = package:get("author") or "unknown <[email protected]>" + specvars.PACKAGE_COPYRIGHT = os.date("%Y") .. " " .. author return specvars end |
