aboutsummaryrefslogtreecommitdiffstats
path: root/out
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-09-12 14:58:59 +0200
committerTharre <tharre3@gmail.com>2014-09-12 15:01:26 +0200
commita07239b0d220fb04dadd6422fd75defa13ee50b9 (patch)
treed50ef18b069eb7d8b020fcf1140b41bdf1534e98 /out
parenta35218e77e279c3a856f35e15fcd95bcb8444e57 (diff)
downloadredo-a07239b0d220fb04dadd6422fd75defa13ee50b9.tar.gz
redo-a07239b0d220fb04dadd6422fd75defa13ee50b9.tar.xz
redo-a07239b0d220fb04dadd6422fd75defa13ee50b9.zip
Rewrite CC.do to make it fail if $CC fails
Diffstat (limited to 'out')
-rw-r--r--out/CC.do6
1 files changed, 2 insertions, 4 deletions
diff --git a/out/CC.do b/out/CC.do
index a29c504..97de1ca 100644
--- a/out/CC.do
+++ b/out/CC.do
@@ -4,9 +4,7 @@ redo-ifchange config.sh
exec >$3
cat <<-EOF
redo-ifchange \$SRCDIR/\$2.c
- IFS= read DEPS << END
- \$($CC $CFLAGS -MD -MF /dev/fd/1 -o \$3 -c \$SRCDIR/\$2.c)
- END
- redo-ifchange \${DEPS#*:}
+ $CC $CFLAGS -MD -MF /dev/fd/1 -o \$3 -c \$SRCDIR/\$2.c | sed 's/^[^:]*://g'|
+ sed 's/ \\\\$//g' | xargs redo-ifchange
EOF
chmod +x $3