Add a Makefile

This commit is contained in:
2025-06-16 20:18:05 -07:00
parent aebdf3d3f0
commit 521fcba66e
5 changed files with 17 additions and 62 deletions

View File

@@ -40,8 +40,9 @@ rootname = (str) ->
result = string.gsub str, "%..+", ""
result
-- TODO use split function from common
split = (str, delimiter="/") ->
[capture for capture in string.gmatch str, "[^#{delimiter}]+"]
[capture for capture in str\gmatch "[^#{delimiter}]+"]
last = (list) -> list[#list]
join = (first, last, delimiter="/") -> table.concat { first, last }, delimiter