package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
315 B
11 lines
315 B
6 years ago
|
function main(...)
|
||
|
local packages = {}
|
||
|
for _, dir in ipairs(os.dirs(path.join("packages", "*", "*"))) do
|
||
|
local package = path.filename(dir)
|
||
|
local key = package:sub(1, 1)
|
||
|
packages[key] = packages[key] or {}
|
||
|
table.insert(packages[key], package)
|
||
|
end
|
||
|
print(packages)
|
||
|
end
|