X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=build%2Fmodule.mk;h=b69019c56839b363c15ab2108a8199959fe0fe20;hb=6285f959753b765ffb9f4ab3922e9619b2198c4e;hp=7104ba5afc6882062b6944b05eef59c040305814;hpb=658a2a69bdb1ad74134c6112cbbf29d7265a83b8;p=project%2Fluci.git diff --git a/build/module.mk b/build/module.mk index 7104ba5af..b69019c56 100644 --- a/build/module.mk +++ b/build/module.mk @@ -39,7 +39,7 @@ 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 luacompile: luasource - for i in $$(find dist -name *.lua -not -name debug.lua); do $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; done + for i in $$(find dist -name *.lua -not -name debug.lua| sort); do if ! $(LUAC) $(LUAC_OPTIONS) -o $$i $$i; then echo "Error compiling $$i"; exit 1; fi; done luaclean: rm -rf dist