squishy

Tue, 27 Nov 2012 08:25:18 -0800

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 27 Nov 2012 08:25:18 -0800
changeset 86
2322f7932064
parent 60
e80882a6af57
child 99
2b6416334a25
permissions
-rw-r--r--

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

2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
1
3
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
2 -- Set this option, same as if user specified
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
3 -- '--executable' on the command-line. Can be
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
4 -- disabled by user with '--no-executable'
2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
5 Option "executable"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
6
3
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
7 -- Output filename
2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
8 Output "squish"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
9
3
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
10 -- This is normal/main script
2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
11 Main "squish.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
12
3
21a2d5205ec6 squishy: Add some comments
Matthew Wild <mwild1@gmail.com>
parents: 2
diff changeset
13 -- Add minify extension if asked to
14
ea4d95329ceb Update squishy file to use GetOption
Matthew Wild <mwild1@gmail.com>
parents: 9
diff changeset
14 if GetOption "with-minify" then
2
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
15 Module "optlex" "minify/optlex.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
16 Module "optparser" "minify/optparser.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
17 Module "llex" "minify/llex.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
18 Module "lparser" "minify/lparser.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
19
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
20 Main "minify/squish.minify.lua"
297b51e0dba2 Add squishy file to squish squish :)
Matthew Wild <mwild1@gmail.com>
parents:
diff changeset
21 end
8
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
22
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
23 -- Compress Lua scripts (an excellent hack :) )
14
ea4d95329ceb Update squishy file to use GetOption
Matthew Wild <mwild1@gmail.com>
parents: 9
diff changeset
24 if GetOption "with-uglify" then
8
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
25 Module "llex" "uglify/llex.lua"
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
26
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
27 Main "uglify/squish.uglify.lua"
f62f83d9dc43 uglify: New specialised Lua 'compression' filter
Matthew Wild <mwild1@gmail.com>
parents: 3
diff changeset
28 end
9
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
29
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
30 -- Compile output files to Lua bytecode
14
ea4d95329ceb Update squishy file to use GetOption
Matthew Wild <mwild1@gmail.com>
parents: 9
diff changeset
31 if GetOption "with-compile" then
45
69b3487c71cc compile: Use minichunkspy for stripping debug info
Matthew Wild <mwild1@gmail.com>
parents: 34
diff changeset
32 Module "minichunkspy" "compile/minichunkspy.lua"
9
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
33 Main "compile/squish.compile.lua"
875ff34ab96c compile: Compile output files to Lua bytecode
Matthew Wild <mwild1@gmail.com>
parents: 8
diff changeset
34 end
19
f72a0f535301 Add virtual io support for accessing resources
Matthew Wild <mwild1@gmail.com>
parents: 14
diff changeset
35
f72a0f535301 Add virtual io support for accessing resources
Matthew Wild <mwild1@gmail.com>
parents: 14
diff changeset
36 if GetOption "with-virtual-io" then
f72a0f535301 Add virtual io support for accessing resources
Matthew Wild <mwild1@gmail.com>
parents: 14
diff changeset
37 Resource "vio" "vio/vio.lua"
f72a0f535301 Add virtual io support for accessing resources
Matthew Wild <mwild1@gmail.com>
parents: 14
diff changeset
38 end
34
0e34461ab2a6 Add new debug extension
Matthew Wild <mwild1@gmail.com>
parents: 19
diff changeset
39
60
e80882a6af57 Update Makefile and squishy to build in gzip
Matthew Wild <mwild1@gmail.com>
parents: 45
diff changeset
40 if GetOption "with-gzip" then
e80882a6af57 Update Makefile and squishy to build in gzip
Matthew Wild <mwild1@gmail.com>
parents: 45
diff changeset
41 Resource "gunzip.lua" "gunzip.lua"
e80882a6af57 Update Makefile and squishy to build in gzip
Matthew Wild <mwild1@gmail.com>
parents: 45
diff changeset
42 Main "gzip/squish.gzip.lua"
e80882a6af57 Update Makefile and squishy to build in gzip
Matthew Wild <mwild1@gmail.com>
parents: 45
diff changeset
43 end
e80882a6af57 Update Makefile and squishy to build in gzip
Matthew Wild <mwild1@gmail.com>
parents: 45
diff changeset
44
34
0e34461ab2a6 Add new debug extension
Matthew Wild <mwild1@gmail.com>
parents: 19
diff changeset
45 if GetOption "with-debug" then
0e34461ab2a6 Add new debug extension
Matthew Wild <mwild1@gmail.com>
parents: 19
diff changeset
46 Resource "squish.debug" "squish.debug"
0e34461ab2a6 Add new debug extension
Matthew Wild <mwild1@gmail.com>
parents: 19
diff changeset
47 end

mercurial