From 54e2e5ac399e55e4c759fb484d3d344359beda5c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 29 Jun 2008 18:42:59 +0000 Subject: * luci: fix stripping of certain multi line comments --- build/module.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ; 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 = ; 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 -- cgit v1.2.3