blob: ac380c47d8aa6c259847b05e8aae4531a47cb967 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
-- bundler. public domain.
-- https://citrons.xyz/git/cc-bundler.git
local bundler = require "bundler"
local platform = require "bundler.platform"
local out, main_module = ...
local other_modules = {}
for i = 3, select("#", ...) do
table.insert(other_modules, (select(i, ...)))
end
if not out or not main_module then
platform.error "usage: [output file] [main module] [other modules]..."
return
end
platform.write(out, bundler.bundle(main_module, other_modules))
|