From 158f709af34f0ead5bfcacfefcf2f49caf610673 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 3 Sep 2011 17:07:38 +0000 Subject: [PATCH] build: Bail out the build if any lua compilation fails. (Patch from Fon-NG, http://trac.fonosfera.org/fon-ng/changeset/1867) --- build/module.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/module.mk b/build/module.mk index 7104ba5afc..b69019c568 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 -- 2.30.2