From 633f65c062457626d84d28231034e373a39ec310 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 18 Mar 2014 18:16:10 +0100 Subject: [PATCH] abort on error when patching oonf_api --- pkg/oonf_api/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/oonf_api/Makefile b/pkg/oonf_api/Makefile index 316b48cd88..b86ec884f4 100644 --- a/pkg/oonf_api/Makefile +++ b/pkg/oonf_api/Makefile @@ -22,7 +22,7 @@ all: patch patch: $(CURDIR)/$(PKG_NAME)/Makefile $(CURDIR)/$(PKG_NAME)/Makefile: $(CURDIR)/$(PKG_NAME) - $(foreach patch,$(shell ls [0-9][0-9][0-9][0-9]*.patch),cd "$<" && git am "../$(patch)";) + $(foreach patch,$(shell ls [0-9][0-9][0-9][0-9]*.patch),cd "$<" && git am "../$(patch)" || { git am --abort; exit 1; };) $(CURDIR)/$(PKG_NAME): git clone $(PKG_URL) $@ && \