diff options
| author | t <t@tjp.lol> | 2026-09-20 13:08:46 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-09-20 13:10:59 -0600 |
| commit | efbac44a016258fe59d5d880accfb14d2c234d2d (patch) | |
| tree | caa627ecb419cb73c689053cffa9dff4f517c6c4 /mise.toml | |
Some popular color themes, packaged up as a panto extension
Diffstat (limited to 'mise.toml')
| -rw-r--r-- | mise.toml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..1de7ca9 --- /dev/null +++ b/mise.toml @@ -0,0 +1,32 @@ +# Release plumbing. `mise run version <x.y.z>` rewrites the rockspec. + +[tasks.check] +description = "Run the self-check inside panto's interpreter" +dir = "{{config_root}}" +run = "panto lua _selfcheck.lua" + +[tasks.verify] +description = "Compare moved themes against Panto core" +dir = "{{config_root}}" +run = ''' +set -eu +PANTOGRAPH_DIR="${PANTOGRAPH_DIR:-../pantograph}" +(cd "$PANTOGRAPH_DIR" && panto lua "{{config_root}}/scripts/verify-against-core.lua") +''' + +[tasks.version] +description = "Rewrite the rockspec for a version (then commit it)" +dir = "{{config_root}}" +run = ''' +set -eu +NEW="{{arg(name='version')}}" +SPEC="$(ls -1 ./*.rockspec)" +PKG="$(sed -n 's/^package = "\\(.*\\)"/\\1/p' "$SPEC")" +NEWSPEC="./$PKG-$NEW-1.rockspec" +TMP="$(mktemp)" +sed -e "s/^version = \\\".*\\\"/version = \\\"$NEW-1\\\"/" \\\ + -e "s/^\\( *\\)tag = \\\"v[^\\\"]*\\\"/\\1tag = \\\"v$NEW\\\"/" "$SPEC" > "$TMP" +mv "$TMP" "$NEWSPEC" +[ "$SPEC" = "$NEWSPEC" ] || rm -f "$SPEC" +luarocks lint "$NEWSPEC" +''' |
