aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-09-12 00:53:02 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-09-12 00:53:02 +0100
commite7479225f204c4b6c10addb850d678c95bdffcd8 (patch)
tree6f6b6f00079bf53ca2a87eab09774fc1c5d656ed
parent5e4590bc2c99b586defcd425a5b1e3c479c27832 (diff)
downloadpack-e7479225f204c4b6c10addb850d678c95bdffcd8.tar.gz
pack-e7479225f204c4b6c10addb850d678c95bdffcd8.tar.xz
pack-e7479225f204c4b6c10addb850d678c95bdffcd8.zip
build: Fix default.o.do exit status
-rw-r--r--default.o.do2
1 files changed, 1 insertions, 1 deletions
diff --git a/default.o.do b/default.o.do
index 5c3e0e9..adab49b 100644
--- a/default.o.do
+++ b/default.o.do
@@ -1,5 +1,5 @@
#!/bin/bash
redo-ifchange "$0" "default.o.do" "$2.c"
. loadargs "compile"
-gcc -std=c11 -MD -MF "$2.d" -c "${args[@]}" -o "$3" "$2.c"
+gcc -std=c11 -MD -MF "$2.d" -c "${args[@]}" -o "$3" "$2.c" || exit 1
redo-ifchange "$2.d" $(sed ':a;/\\$/{s/[^:]*: //;N;s/ \\\n//;ba}' <"$2.d")