summaryrefslogtreecommitdiffhomepage
path: root/build
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-23 02:04:55 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-23 02:04:55 +0000
commite20ac8fed4a745dea19b4674e335ae45e830c5f5 (patch)
treed66ccab4931a4ba3b710c47f0ab805c83b3ea717 /build
parentdb7d37f0aff4142314ebeffead921b3a9df0e491 (diff)
build: set LUA_PATH when invoking LuaSrcDiet
Diffstat (limited to 'build')
-rw-r--r--build/module.mk2
1 files changed, 1 insertions, 1 deletions
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 = <F>; close F; $$src =~ s/--\[\[.*?\]\](--)?//gs; $$src =~ s/^\s*--.*?\n//gm; open( F, "> $$ARGV[0]" ) || die $$!; print F $$src; close F' $$i; done