Squashed 'third_party/cgit/' content from commit 8fc0c81

git-subtree-dir: third_party/cgit
git-subtree-split: 8fc0c81bbbed21ee30e8a48b2ab1066a029b7b32
This commit is contained in:
Vincent Ambo 2020-01-11 23:30:06 +00:00
commit 723dc8fbcb
102 changed files with 15632 additions and 0 deletions

17
tests/filters/dump.lua Normal file
View file

@ -0,0 +1,17 @@
function filter_open(...)
buffer = ""
for i = 1, select("#", ...) do
buffer = buffer .. select(i, ...) .. " "
end
end
function filter_close()
html(buffer)
return 0
end
function filter_write(str)
buffer = buffer .. string.upper(str)
end

4
tests/filters/dump.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
[ "$#" -gt 0 ] && printf "%s " "$*"
tr '[:lower:]' '[:upper:]'