-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload build, changelog, doc and readme
- Loading branch information
Showing
4 changed files
with
167 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## [v0.1] | ||
|
||
### New | ||
|
||
- A beamer inner theme which reproduces standard beamer blocks using tcolorboxes | ||
|
||
------ | ||
|
||
[Unreleased]: https://github.com/samcarter/beamertheme-tcolorbox/compare/v0.1...HEAD | ||
[v0.1]: https://github.com/samcarter/beamertheme-tcolorbox/compare/v0.0...v0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# TikZbricks | ||
|
||
A beamer inner theme which reproduces standard beamer blocks using tcolorboxes | ||
|
||
Current version: 2022/08/25 version v0.1 | ||
|
||
This project is licensed under the LaTeX Project Public License v1.3c or later, see http://www.latex-project.org/lppl.txt | ||
|
||
The project repository, including a bug tracker, can be found at https://github.com/samcarter/beamertheme-tcolorbox/issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
#!/usr/bin/env texlua | ||
-- Execute with ====================================================== | ||
-- l3build tag | ||
-- l3build ctan | ||
-- l3build upload | ||
-- l3build clean | ||
|
||
-- Settings ========================================================== | ||
module = "beamertheme-tcolorbox" | ||
ctanpkg = "beamertheme-tcolorbox" | ||
builddir = os.getenv("TMPDIR") | ||
|
||
-- Private settings ================================================== | ||
local ok, build_private = pcall(require, "build-private.lua") | ||
|
||
-- Package version =================================================== | ||
if ok then | ||
local handle = io.popen("git describe --tags $(git rev-list --tags --max-count=1)") | ||
local oldtag = handle:read("*a") | ||
handle:close() | ||
newsubtag = string.sub(oldtag, 4) | ||
newmajortag = string.sub(oldtag, 0, 3) | ||
previousversion = newmajortag .. math.floor(newsubtag) | ||
if ( options["target"] == "tag") then | ||
newsubtag = newsubtag + 1 | ||
end | ||
packageversion = newmajortag .. math.floor(newsubtag) | ||
else | ||
packageversion="v1.42" | ||
end | ||
|
||
-- Package date ====================================================== | ||
packagedate = os.date("!%Y-%m-%d") | ||
--packagedate = "2020-01-02" | ||
|
||
-- interacting with git ============================================== | ||
function git(...) | ||
local args = {...} | ||
table.insert(args, 1, 'git') | ||
local cmd = table.concat(args, ' ') | ||
print('Executing:', cmd) | ||
os.execute(cmd) | ||
end | ||
|
||
-- replace version tags in .sty and -doc.tex files =================== | ||
tagfiles = {"*.sty", "*-doc.tex", "README.md", "CHANGELOG.md"} | ||
function update_tag (file,content,tagname,tagdate) | ||
tagdate = string.gsub (packagedate,"-", "/") | ||
if string.match (file, "%.sty$" ) then | ||
content = string.gsub ( | ||
content, | ||
"\\ProvidesPackage{(.-)}%[%d%d%d%d%/%d%d%/%d%d version v%d%.%d+", | ||
"\\ProvidesPackage{%1}[" .. tagdate.." version "..packageversion | ||
) | ||
return content | ||
elseif string.match (file, "*-doc.tex$" ) then | ||
content = string.gsub ( | ||
content, | ||
"\\date{Version v%d%.%d+ \\textendash{} %d%d%d%d%/%d%d%/%d%d", | ||
"\\date{Version " .. packageversion .. " \\textendash{} " .. tagdate | ||
) | ||
return content | ||
elseif string.match (file, "README.md$" ) then | ||
content = string.gsub ( | ||
content, | ||
"Current version: %d%d%d%d%/%d%d%/%d%d version v%d%.%d+", | ||
"Current version: " .. tagdate.." version "..packageversion | ||
) | ||
return content | ||
elseif string.match (file, "CHANGELOG.md$" ) then | ||
local url = "https://github.com/samcarter/" .. module .. "/compare/" | ||
local previous = string.match(content,"compare/(v%d%.%d)%.%.%.HEAD") | ||
|
||
-- copying current changelong to announcement.txt | ||
-- finding start and end in changelog | ||
i, startstring = string.find(content, "## %[Unreleased%]") | ||
stopstring, i = string.find(content, "## %[" .. previousversion .. "%]") | ||
-- opening file and writing substring | ||
file = io.open("announcement.txt", "w") | ||
file:write(string.sub(content, startstring+3, stopstring-1), "\n") | ||
file:close() | ||
|
||
-- adding new unreleased heading at the top | ||
content = string.gsub ( | ||
content, | ||
"## %[Unreleased%]", | ||
"## [Unreleased]\n\n### New\n\n### Changed\n\n### Fixed\n\n\n## [" .. packageversion .."]" | ||
) | ||
|
||
-- adding new link at bottom | ||
content = string.gsub ( | ||
content, | ||
"v%d.%d%.%.%.HEAD", | ||
packageversion .. "...HEAD\n[" .. packageversion .. "]: " .. url .. previousversion .. "..." .. packageversion | ||
) | ||
return content | ||
end | ||
return content | ||
end | ||
|
||
-- committing retagged file and tag the commit ======================= | ||
function tag_hook(tagname) | ||
git("add", "*.sty") | ||
git("add", "*-doc.tex") | ||
git("add", "README.md") | ||
git("add", "CHANGELOG.md") | ||
os.execute("latexmk " .. module .. "-doc") | ||
os.execute("cp " .. module .. "-doc.pdf documentation.pdf") | ||
git("add", "documentation.pdf") | ||
git("commit -m 'step version ", packageversion, "'" ) | ||
git("tag", packageversion) | ||
end | ||
|
||
-- collecting files for ctan ========================================= | ||
docfiles = {"*-doc.tex"} | ||
textfiles= {"README.md"} | ||
ctanreadme= "README.md" | ||
packtdszip = false | ||
installfiles = {"*.sty"} | ||
sourcefiles = {"*.sty"} | ||
excludefiles = {"documentation.pdf","test.pdf"} | ||
|
||
-- configuring ctan upload =========================================== | ||
if not ok then | ||
uploadconfig = uploadconfig or {} | ||
uploadconfig.author = "xxx" | ||
uploadconfig.uploader = "xxx" | ||
uploadconfig.email = "xxx" | ||
end | ||
|
||
uploadconfig = { | ||
author = uploadconfig.author, | ||
uploader = uploadconfig.uploader, | ||
email = uploadconfig.email, | ||
pkg = ctanpkg, | ||
version = packageversion .. " " .. packagedate, | ||
license = "lppl1.3c", | ||
summary = "A beamer inner theme which reproduces standard beamer blocks using tcolorboxes", | ||
ctanPath = "/graphics/pgf/contrib/" .. ctanpkg, | ||
repository = "https://github.com/samcarter/" .. module, | ||
note = [[Uploaded automatically by l3build...]], | ||
bugtracker = "https://github.com/samcarter/" .. module .. "/issues", | ||
support = "https://github.com/samcarter/" .. module .. "/issues", | ||
announcement_file = "announcement.txt" | ||
} | ||
|
||
-- cleanup =========================================================== | ||
cleanfiles = {"beamertheme-tcolorbox-ctan.curlopt", "beamertheme-tcolorbox-ctan.zip"} |
Binary file not shown.