diff --git a/CHANGELOG.md b/CHANGELOG.md index 0367df71..e351714b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [v0.2.0] - 2022-08-18 + ### Added - The cite grouping, collapsing, and disambiguation features are now implemented. @@ -44,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial CTAN release. -[Unreleased]: https://github.com/zepinglee/citeproc-lua/compare/v0.1.1...HEAD +[Unreleased]: https://github.com/zepinglee/citeproc-lua/compare/v0.2.0...HEAD +[v0.2.0]: https://github.com/zepinglee/citeproc-lua/compare/v0.1.1...0.2.0 [v0.1.1]: https://github.com/zepinglee/citeproc-lua/compare/v0.1.0...v0.1.1 [v0.1.0]: https://github.com/zepinglee/citeproc-lua/releases/tag/v0.1.0 diff --git a/build.lua b/build.lua index a19b9518..f98a165f 100644 --- a/build.lua +++ b/build.lua @@ -9,7 +9,7 @@ docfiledir = "./doc" testfiledir = "./test/latex" testsuppdir = testfiledir .. "/support" -exefiles = {"**/citeproc-lua.lua"} +exefiles = {"citeproc-lua.lua", "**/citeproc-lua.lua"} installfiles = { "**/*.lua", "**/*.sty", @@ -58,27 +58,29 @@ function update_tag(file, content, tagname, tagdate) if file == "citation-style-language.sty" then return string.gsub(content, "\\ProvidesExplPackage %{citation%-style%-language%} %{[^}]+%} %{[^}]+%}", - "\\ProvidesExplPackage {citation-style-language} {" .. tagdate .. "} {" .. tagname .. "}") + "\\ProvidesExplPackage {citation-style-language} {" .. tagdate .. "} {v" .. tagname .. "}") elseif file == "citeproc.lua" then return string.gsub(content, 'citeproc%.__VERSION__ = "' .. version_pattern .. '"', - 'citeproc.__VERSION__ = "' .. string.sub(tagname, 2) .. '"') + 'citeproc.__VERSION__ = "' .. tagname .. '"') elseif file == "citation-style-language-doc.tex" then return string.gsub(content, "\\date%{([^}]+)%}", - "\\date{" .. tagdate .. " " .. tagname .. "}") + "\\date{" .. tagdate .. " v" .. tagname .. "}") elseif file == "citeproc-lua.1" then return string.gsub(content, '%.TH citeproc-lua 1 "' .. version_pattern .. '"\n', - '.TH citeproc-lua 1 "' .. string.sub(tagname, 2) .. '"\n') + '.TH citeproc-lua 1 "' .. tagname .. '"\n') elseif file == "CHANGELOG.md" then - local previous = string.match(content, "compare/(v" .. version_pattern .. ")%.%.%.HEAD") + local previous = string.match(content, "compare/v(" .. version_pattern .. ")%.%.%.HEAD") if tagname == previous then return content end + -- print(tagname) + -- print(previous) content = string.gsub(content, - "## %[Unreleased%]", "## [Unreleased]\n\n## [" .. tagname .. "] - " .. tagdate) + "## %[Unreleased%]", "## [Unreleased]\n\n## [v" .. tagname .. "] - " .. tagdate) content = string.gsub(content, "v" .. version_pattern .. "%.%.%.HEAD", - tagname .. "...HEAD\n[" .. tagname .. "]: " .. url_prefix .. previous + "v" .. tagname .. "...HEAD\n[v" .. tagname .. "]: " .. url_prefix .. "v" .. previous .. "..." .. tagname) return content end diff --git a/citeproc/citeproc.lua b/citeproc/citeproc.lua index 828d9514..b266abbd 100644 --- a/citeproc/citeproc.lua +++ b/citeproc/citeproc.lua @@ -10,7 +10,7 @@ local engine = require("citeproc-engine") local bib = require("citeproc-bib") local util = require("citeproc-util") -citeproc.__VERSION__ = "0.1.1" +citeproc.__VERSION__ = "0.2.0" citeproc.new = engine.CiteProc.new citeproc.parse_bib = bib.parse diff --git a/doc/citation-style-language-doc.tex b/doc/citation-style-language-doc.tex index 7b1e6838..1dda26c5 100644 --- a/doc/citation-style-language-doc.tex +++ b/doc/citation-style-language-doc.tex @@ -49,7 +49,7 @@ }% } -\date{2022-03-21 v0.1.1} +\date{2022-08-18 v0.2.0} \maketitle diff --git a/latex/citation-style-language.sty b/latex/citation-style-language.sty index d9a212a7..87165c4b 100644 --- a/latex/citation-style-language.sty +++ b/latex/citation-style-language.sty @@ -9,7 +9,7 @@ \RequirePackage{expl3} \RequirePackage{xparse} -\ProvidesExplPackage {citation-style-language} {2022-01-22} {v0.1.0} +\ProvidesExplPackage {citation-style-language} {2022-08-18} {v0.2.0} {Citation Style Language for LaTeX} \RequirePackage { l3keys2e }