aboutsummaryrefslogtreecommitdiffstats
path: root/out
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2014-12-22 22:44:45 +0100
committerTharre <tharre3@gmail.com>2014-12-22 22:44:45 +0100
commit0d6ebe73691b4f4f4039dcaaf468d27b5cc777c6 (patch)
tree13947bfc4505e54926f50164ce805d32e2ae0641 /out
parent6347f449fe1b48e59f18327bbdcce60b2883f86e (diff)
downloadredo-0d6ebe73691b4f4f4039dcaaf468d27b5cc777c6.tar.gz
redo-0d6ebe73691b4f4f4039dcaaf468d27b5cc777c6.tar.xz
redo-0d6ebe73691b4f4f4039dcaaf468d27b5cc777c6.zip
Fix scripts to honor paths with spaces
Diffstat (limited to 'out')
-rw-r--r--out/CC.do4
1 files changed, 2 insertions, 2 deletions
diff --git a/out/CC.do b/out/CC.do
index 3191b61..c5e2d10 100644
--- a/out/CC.do
+++ b/out/CC.do
@@ -3,8 +3,8 @@ redo-ifchange config.sh
exec >$3
cat <<-EOF
- redo-ifchange \$SRCDIR/\$2.c
- temp=\$($CC $CFLAGS -MD -MF /dev/fd/1 -o \$3 -c \$SRCDIR/\$2.c)
+ redo-ifchange "\$SRCDIR/\$2.c"
+ temp=\$($CC $CFLAGS -MD -MF /dev/fd/1 -o \$3 -c "\$SRCDIR/\$2.c")
echo \$temp | sed 's/^[^:]*://g' | sed 's/ \\\\//g' | xargs redo-ifchange
EOF
chmod +x $3