From e20ac8fed4a745dea19b4674e335ae45e830c5f5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 23 Jan 2011 02:04:55 +0000 Subject: [PATCH] build: set LUA_PATH when invoking LuaSrcDiet --- build/module.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/module.mk b/build/module.mk index f0d50f88b..7104ba5af 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 --maximum $$i -o $$i.diet && mv $$i.diet $$i; done + for i in $$(find dist -type f -name '*.lua'); do LUA_PATH="../../contrib/luasrcdiet/lua/?.lua" $(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 -- 2.25.1