escape $2 in generated compile script example (#19)

This commit is contained in:
Alexey Shamrin 2018-11-07 07:55:53 +02:00 committed by apenwarr
commit 1ad6e8ca0d

View file

@ -853,7 +853,7 @@ create a file called `compile.do`:
redo-ifchange config.sh
. ./config.sh
echo "gcc -c -o \$3 $2.c $CFLAGS" >$3
echo "gcc -c -o \$3 \$2.c $CFLAGS" >$3
chmod a+x $3
Then, your `default.o.do` can simply look like this: