squishy

Sat, 25 Jul 2009 18:46:47 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 25 Jul 2009 18:46:47 +0100
changeset 9
875ff34ab96c
parent 8
f62f83d9dc43
child 14
ea4d95329ceb
permissions
-rw-r--r--

compile: Compile output files to Lua bytecode


-- Set this option, same as if user specified
-- '--executable' on the command-line. Can be 
-- disabled by user with '--no-executable'
Option "executable"

-- Output filename
Output "squish"

-- This is normal/main script
Main "squish.lua"

-- Add minify extension if asked to
if opts.with_minify then
	Module "optlex"		"minify/optlex.lua"
	Module "optparser"	"minify/optparser.lua"
	Module "llex"		"minify/llex.lua"
	Module "lparser"	"minify/lparser.lua"

	Main "minify/squish.minify.lua"
end

-- Compress Lua scripts (an excellent hack :) )
if opts.with_uglify then
	Module "llex"		"uglify/llex.lua"
	
	Main "uglify/squish.uglify.lua"
end

-- Compile output files to Lua bytecode
if opts.with_compile then
	Main "compile/squish.compile.lua"
end

mercurial