From: Jo-Philipp Wich Date: Sun, 23 Jan 2011 01:55:12 +0000 (+0000) Subject: build: use maximum compression for LuaSrcDiet X-Git-Tag: 0.11.0~2331 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=db7d37f0aff4142314ebeffead921b3a9df0e491;p=oweals%2Fluci.git build: use maximum compression for LuaSrcDiet --- diff --git a/build/module.mk b/build/module.mk index 9ac643c22..f0d50f88b 100644 --- a/build/module.mk +++ b/build/module.mk @@ -33,7 +33,7 @@ luasource: luadiet: luasource - for i in $$(find dist -type f -name '*.lua'); do $(LUA) ../../contrib/luasrcdiet/lua/LuaSrcDiet.lua $$i -o $$i.diet && mv $$i.diet $$i; done + for i in $$(find dist -type f -name '*.lua'); do $(LUA) ../../contrib/luasrcdiet/lua/LuaSrcDiet.lua --maximum $$i -o $$i.diet && mv $$i.diet $$i; done luastrip: luasource 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