forked from civboot/civstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKG.lua
More file actions
51 lines (48 loc) · 1.23 KB
/
PKG.lua
File metadata and controls
51 lines (48 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
local P = {}
P.summary = "civ build system and developer software stack"
local lua = import'sys:lua.luk'
-- pkg {
-- name = 'civ',
-- version = '0.1-0',
-- url = 'git+http://github.com/civboot/civlua',
-- doc = 'README.cxt',
-- repo = 'https://github.com/civboot/civlua',
-- homepage = 'https://lua.civboot.org',
-- }
P.civ = lua {
mod = 'civ',
src = {
'civ.lua',
'civ/core.lua',
'civ/Builder.lua',
},
dep = {
'civ:lib/civix',
'civ:lib/vt100',
'civ:lib/pod',
'civ:lib/luk',
'civ:lib/lson',
'civ:lib/lines',
'civ:lib/civtest',
},
tag = { builder = 'bootstrap' },
link = {['lua/civ.lua'] = 'bin/civ'},
}
return P
-- local FILE = 'https://github.com/civboot/civlua/blob/main/'
-- local FILE_LINE = FILE..'%s#L%s'
-- local RENDERED = 'https://html-preview.github.io/'
-- ..'?url=https://github.com/civboot/civlua/main/'
-- local EXT_PAT = '%.(%w+)$'
-- local USE_RENDERED = {html='html', cxt='html'}
--
-- html = {
-- pathUrl = function(p)
-- if USE_RENDERED[p:match(EXT_PAT)] then return p:gsub(EXT_PAT, USE_RENDERED) end
-- if p:match':(%d+)$' then
-- return FILE_LINE:format(p:match'^(.*):(%d+)$')
-- end
-- return FILE..p
-- end,
-- }
--