Skip to content

Commit

Permalink
#11 l3build
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 3, 2022
1 parent 550128b commit 4edbaf7
Show file tree
Hide file tree
Showing 22 changed files with 565 additions and 487 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/l3build.yml
@@ -0,0 +1,16 @@
name: l3build
on:
push:
branches: master
pull_request:
branches: master
jobs:
l3build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: teatimeguest/setup-texlive-action@v2.4.1
with:
package-file: DEPENDS.txt
packages: scheme-basic xetex libertine l3build
- run: l3build check -q --show-log-on-error
15 changes: 0 additions & 15 deletions .github/workflows/latexmk.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
@@ -1,6 +1,10 @@
.DS_Store
target/
build/
_minted-*
*.glo
*.sty
*.tex
*.zip
*.toc
*.pdf
Expand Down
16 changes: 9 additions & 7 deletions .rultor.yml
@@ -1,18 +1,20 @@
docker:
image: yegor256/rultor-image:1.12.3
image: yegor256/rultor-image:1.13.0
install: |-
sudo apt-get install -y python3-pygments
sudo pip3 install pygments
sudo tlmgr option repository ctan
sudo gem install texsc:0.6.0
sudo gem install texqc:0.6.0
sudo apt-get install -y aspell
sudo tlmgr option repository ctan
sudo tlmgr --verify-repo=none update --self
sudo tlmgr --verify-repo=none install l3build
sudo tlmgr --verify-repo=none install libertine minted fvextra framed tcolorbox environ catchfile xstring xkeyval
merge:
script: |-
l3build check
release:
script: |-
make VERSION=${tag} set-version
l3build tag ${tag}
l3build ctan
texsc
texqc
git commit -am "version set to ${tag}"
make
echo 'y' | l3build upload --halt-on-error
3 changes: 3 additions & 0 deletions DEPENDS.txt
@@ -0,0 +1,3 @@
hard shellesc
hard pgfkeys
hard xkeyval
72 changes: 0 additions & 72 deletions Makefile

This file was deleted.

28 changes: 21 additions & 7 deletions build.lua
@@ -1,20 +1,34 @@
module = "ffcode"
ctanupload = true
typesetopts = "--interaction=batchmode --shell-escape"
checkopts = "--interaction=batchmode --shell-escape"
tagfiles = {"build.lua", "ffcode.dtx"}
dynamicfiles = {"_minted-*"}
checkengines = {"pdftex"}

uploadconfig = {
pkg = "ffcode",
version = "0.0.0",
author = "Yegor Bugayenko",
uploader = "Yegor Bugayenko",
email = "yegor256@gmail.com",
note = "Bug fixes",
announcement = "Some non-critical bug fixes",
announcement = "",
ctanPath = "/macros/latex/contrib/ffcode",
bugtracker = "https://github.com/yegor256/ffcode/issues",
home = "https://github.com/yegor256/ffcode",
description = "This LaTeX package helps you write source code in your academic papers and make sure it looks neat. It uses minted and tcolorbox, configuring them the right way, to make sure code fragments and code blocks look nicer.",
development = "https://github.com/yegor256/ffcode",
home = "",
description = "This LaTeX package helps you write source code in your academic papers and make it looks neat. It uses minted and tcolorbox, configuring them the right way, to ensure that code fragments and code blocks look nicer.",
development = "",
license = "mit",
summary = "Fixed-font code blocks formatted nicely",
repository = "https://github.com/yegor256/ffcode",
support = "https://github.com/yegor256/ffcode",
topic = "verbatim"
}
support = "",
topic = {"line-nos", "listing", "verbatim"}
}

function update_tag(file, content, tagname, tagdate)
return string.gsub(
string.gsub(content, "0%.0%.0", tagname),
"00%.00%.0000", os.date("%d.%m.%Y")
)
end

0 comments on commit 4edbaf7

Please sign in to comment.