Skip to content

Commit

Permalink
Bump to v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed Aug 18, 2022
1 parent a3bea91 commit 8aaf57a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
18 changes: 10 additions & 8 deletions build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion citeproc/citeproc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion doc/citation-style-language-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}%
}

\date{2022-03-21 v0.1.1}
\date{2022-08-18 v0.2.0}

\maketitle

Expand Down
2 changes: 1 addition & 1 deletion latex/citation-style-language.sty
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 8aaf57a

Please sign in to comment.