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

make_squishy: Fix traceback when file doesn't contain any path component

make_squishy: Fix traceback on modules that couldn't be found on the filesystem (thanks Valerio)

squish: Handle nil errors when can't pack a module

gzip: Enably uglify for gzip decompression code (reduces gzip fixed overhead by 1K)

gzip: Some changes to make embedding decompression code compatible with uglify

README: Update for new --uglify-level=full

uglify: Fix logic that determines whether we can uglify a file

uglify: Support for uglifying identifiers and string literals too (--uglify-level=full)

README: Add gzip

Update Makefile and squishy to build in gzip

gzip: Add support for gzipping output files, based on a very hacked compress.deflatelua by David Manura

squish: Insert a space before ending our wrapper function, in case the module doesn't end with whitespace already

compile: Update copy of minichunkspy.lua (new release)

uglify: Preserve the uglified module's return value(s)

Don't let squishy file override the user's specified output file, if one

squish.lua: Small fix to comment

Fixes for handling binary resources

Obey --no-recursion option

make_squishy: Disable resolution of binary modules for now

make_squishy: Add help text

Add squish.debug to .hgignore

Add local/ to .hgignore

Add .hgignore to .hgignore

-g == --debug

compile: Use minichunkspy for stripping debug info

Add to README about make_squishy

make_squishy: Automatically scan sources looking for modules and generate a squishy file

Add virtual IO section to the README

Rename --enable-virtual-io to --virtual-io

Update README to reflect --debug change

(0) -60 tip

mercurial