Mercurial Hosting > luan
diff src/luan/modules/mmake.luan @ 1717:c637a2a1023d
add String.replace
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 25 Jul 2022 11:16:53 -0600 |
parents | b82767112d8e |
children |
line wrap: on
line diff
--- a/src/luan/modules/mmake.luan Sun Jul 24 23:43:03 2022 -0600 +++ b/src/luan/modules/mmake.luan Mon Jul 25 11:16:53 2022 -0600 @@ -5,7 +5,7 @@ local print = Io.print local output_to = Io.output_to local String = require "luan:String.luan" -local regex = String.regex +local replace = String.replace local substring = String.sub local ends_with = String.ends_with local Time = require "luan:Time.luan" @@ -46,9 +46,8 @@ end local out = dir.child("Makefile").text_writer() output_to(out,header) - local r = regex([[\$]]) for _, s in ipairs(javas) do - s = r.gsub(s,[[\$\$]]) + s = replace(s,"$","$$") out.write( "\\\n\t\t", s , ".class" ) end for _, s in ipairs(dirs) do