Mercurial Hosting > luan
comparison core/src/luan/modules/mmake.luan @ 543:9767da72545b
fix mmake
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 08 Jun 2015 01:11:08 -0400 |
parents | 92c3d22745b8 |
children | 35dde32c02ab |
comparison
equal
deleted
inserted
replaced
542:7170a0c414d5 | 543:9767da72545b |
---|---|
26 local function mmake(dir) | 26 local function mmake(dir) |
27 local javas = {} | 27 local javas = {} |
28 local dirs = {} | 28 local dirs = {} |
29 for _, file in ipairs(dir.children()) do | 29 for _, file in ipairs(dir.children()) do |
30 local name = file.name() | 30 local name = file.name() |
31 if name.match ".java$" ~= nil then | 31 if String.matches(name,[[.*\.java]]) then |
32 javas[#javas+1] = name.sub(1,-6) | 32 javas[#javas+1] = String.sub(name,1,-6) |
33 end | 33 end |
34 if file.is_directory() and mmake(file) then | 34 if file.is_directory() and mmake(file) then |
35 dirs[#dirs+1] = name | 35 dirs[#dirs+1] = name |
36 end | 36 end |
37 end | 37 end |