summaryrefslogtreecommitdiffhomepage
path: root/build/module.mk
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-06-29 18:42:59 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-06-29 18:42:59 +0000
commit54e2e5ac399e55e4c759fb484d3d344359beda5c (patch)
tree3fb0ea08a739faa74f5a3e79c36bcf4ebec4cf90 /build/module.mk
parentec297a5546f59ee49f6de943b7a3afb33ecc097f (diff)
* luci: fix stripping of certain multi line comments
Diffstat (limited to 'build/module.mk')
-rw-r--r--build/module.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/module.mk b/build/module.mk
index 032fc8de1..8e403a0b6 100644
--- a/build/module.mk
+++ b/build/module.mk
@@ -20,7 +20,7 @@ luasource:
cp -a lua/* dist$(LUA_MODULEDIR) -R 2>/dev/null || true
cp -a htdocs/* dist$(HTDOCS) -R 2>/dev/null || true
for i in $$(find dist -name .svn); do rm $$i -rf; done
- for i in $$(find dist -type f -name '*.lua'); do perl -e 'undef $$/; open( F, "< $$ARGV[0]" ) || die $$!; $$src = <F>; close F; $$src =~ s/--\[\[.*?\]\]--//gs; $$src =~ s/^\s*--.*?\n//gm; open( F, "> $$ARGV[0]" ) || die $$!; print F $$src; close F' $$i; done
+ for i in $$(find dist -type f -name '*.lua'); do perl -e 'undef $$/; open( F, "< $$ARGV[0]" ) || die $$!; $$src = <F>; close F; $$src =~ s/--\[\[.*?\]\](--)?//gs; $$src =~ s/^\s*--.*?\n//gm; open( F, "> $$ARGV[0]" ) || die $$!; print F $$src; close F' $$i; done
luacompile: luasource
for i in $$(find dist -name *.lua -not -name debug.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done