A range of fixes for Lua 5.2 support lua5.2 tip

squish: Fix generation of custom shebang lua5.2

Makefile: remove -q by default for easier debugging of build issues lua5.2

uglify: Fix 'mode' parameter to io.open (5.2 is more strict) lua5.2

squish: Optionally add in a 5.2-compatible module() function (5.2's own compat function is broken) lua5.2

minify: Preserve _ENV, as it's lexically significant in 5.2+ lua5.2

minify: Return _M from modules that weren't lua5.2

uglify: Ensure prettified code inherits the current environment, instead of the default global environment default

squish.lua: Add --list-missing-files option

squish.lua: Exit if any modules don't have a path

squish.lua: Remove accidentally-committed debugging

squish.lua: Add --list-files option, which lists out all files required by the squishy file (with the passed command-line options)

squish.lua: Move opening of output file until after resolving modules

Remove shebangs from modules, if any (thanks Markus Stenberg)

Remove uses of getfenv to work around Lua/LuaJIT inconsistency, and as a step towards 5.2 compatibility (thanks mva, Zash)

make_squishy: Match require calls at the start of a line (thanks R D)

Change to behaviour of --debug/-g - at the (temporary) loss of squishing modules -g will now give real tracebacks again with original filenames

squish.lua: AutoFetch file paths can now begin with / or . too

squish.lua: Support for AutoFetch to use file:// URLs

squish.lua: Initialise LuaRocks if available

README: Add 'Building and installing' section

gzip/deflatelua.lua: Move licence to the top and add myself for modifications

COPYRIGHT: Update for 2010

Add CHANGES file

squish.gzip.lua: Escape \026 in gzipped output to prevent Windows from interpreting it as EOF (thanks to Vadim Peretokin for his persistence!)

squish.gzip.lua: Write code without shebang to temporary file to avoid compressing the shebang and passing it to loadstring

squish.gzip.lua: Open output file in binary mode

squish.uglify.lua: Open output file in binary mode

squish.lua: Only prepend project base path for relative paths specified in the squishy file

make_squishy: Improve 'Couldn't resolve' message

(0) -50 -30 tip

mercurial