1 #!/usr/bin/env lua |
1 #!/usr/bin/env lua |
|
2 |
|
3 if not arg[1] or arg[1]:match("%-%-?help") or arg[1]:match("^[/-]%?$") then |
|
4 print "make_squishy - Generate squishy files for your projects" |
|
5 print "" |
|
6 print(" Usage: "..arg[0].." FILE1 FILE2 FILE..."); |
|
7 print "" |
|
8 print "make_squishy will scan the given files for require() calls, and convert the " |
|
9 print "found modules into a squishy file, 'squishy.new'. make_squishy automatically scans " |
|
10 print "the modules it finds, looking for further dependencies. To disable this, use " |
|
11 print "the --no-recursion option." |
|
12 return; |
|
13 end |
|
14 |
2 |
15 |
3 local short_opts = { v = "verbose", vv = "very_verbose", o = "output", q = "quiet", qq = "very_quiet", f = "force" } |
16 local short_opts = { v = "verbose", vv = "very_verbose", o = "output", q = "quiet", qq = "very_quiet", f = "force" } |
4 local files, opts = {}, {}; |
17 local files, opts = {}, {}; |
5 local scanned_files, modules = {}, {}; |
18 local scanned_files, modules = {}, {}; |
6 |
19 |