diff -r b93f52cbe253 -r ea4d95329ceb squishy --- a/squishy Sat Jul 25 22:05:55 2009 +0100 +++ b/squishy Sat Jul 25 22:09:53 2009 +0100 @@ -11,7 +11,7 @@ Main "squish.lua" -- Add minify extension if asked to -if opts.with_minify then +if GetOption "with-minify" then Module "optlex" "minify/optlex.lua" Module "optparser" "minify/optparser.lua" Module "llex" "minify/llex.lua" @@ -21,13 +21,13 @@ end -- Compress Lua scripts (an excellent hack :) ) -if opts.with_uglify then +if GetOption "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 +if GetOption "with-compile" then Main "compile/squish.compile.lua" end