From 03ad47080cc869051af58f91769da4faf503e151 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 23 Jan 2011 01:49:54 +0000 Subject: contrib, build: bundle LuaSrcDiet and make it available in build targets --- build/module.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build') diff --git a/build/module.mk b/build/module.mk index 4e6c42c70..9ac643c22 100644 --- a/build/module.mk +++ b/build/module.mk @@ -32,6 +32,9 @@ luasource: endif +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 + 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 -- cgit v1.2.3