comparison dist/scripts/mmake.luan @ 273:073044e3ac03

fix mmake.sh and multipart mail git-svn-id: https://luan-java.googlecode.com/svn/trunk@274 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 31 Oct 2014 18:44:11 +0000
parents 97d175772fed
children
comparison
equal deleted inserted replaced
272:eb27e765affb 273:073044e3ac03
1 import "Table" 1 import "luan:Table"
2 import "Io" 2 import "luan:Io"
3 import "String" 3 import "luan:String"
4 import "Java" 4 import "luan:Time"
5 import "java.util.Date"
6 5
7 compiler = Table.concat( { "javac -g -encoding UTF8", ... }, " " ) 6 compiler = Table.concat( { "javac -g -encoding UTF8", ... }, " " )
8 7
9 function mmake(dir) 8 function mmake(dir)
10 local java = {} 9 local java = {}
39 end 38 end
40 39
41 40
42 function header() 41 function header()
43 return %> 42 return %>
44 # Makefile created on <%=Date.new()%> by Mmake 43 # Makefile created on <%=Time.format(Time.now())%> by Mmake
45 44
46 .SUFFIXES: .java .class 45 .SUFFIXES: .java .class
47 46
48 .java.class: 47 .java.class:
49 javac -g -encoding UTF8 $< 48 <%=compiler%> $<
50 49
51 all: <% 50 all: <%
52 end 51 end
53 52
54 mmake(Io.File ".") 53 mmake(Io.schemes.file ".")