diff --git a/git-add-and-commit.py b/git-add-and-commit.py index 9a012c17..5bcaf523 100755 --- a/git-add-and-commit.py +++ b/git-add-and-commit.py @@ -18,15 +18,16 @@ def get_uncommit_changes(): def update_version(): - version_template = '''local M = {{}} - -M.last_updated_time = '{}.{:02d}.{:02d}' - -return M + version_template = ''' +return {{ + version = function() + return "{}.{:02d}.{:02d}" + end, +}} ''' now = datetime.datetime.now() version_str = version_template.format(now.year, now.month, now.day) - with open(os.path.join(repo_home(), 'lua/ht/version.lua'), 'w') as fp: + with open(os.path.join(repo_home(), 'lua/dotvim/version.lua'), 'w') as fp: fp.write(version_str) diff --git a/lua/dotvim/version.lua b/lua/dotvim/version.lua index af7659a2..aff1c8ab 100644 --- a/lua/dotvim/version.lua +++ b/lua/dotvim/version.lua @@ -1,5 +1,6 @@ + return { version = function() - return "2024.03.30" + return "2024.04.15" end, }