]> Cypherpunks.ru repositories - goredo.git/blobdiff - t/apenwarr/111-example/CC.do
Import tests from apenwarr/redo and redo.sh
[goredo.git] / t / apenwarr / 111-example / CC.do
diff --git a/t/apenwarr/111-example/CC.do b/t/apenwarr/111-example/CC.do
new file mode 100644 (file)
index 0000000..177fe41
--- /dev/null
@@ -0,0 +1,11 @@
+redo-ifchange config.sh
+. ./config.sh
+exec >$3
+cat <<-EOF
+       redo-ifchange \$2.c
+       cc $CFLAGS -MD -MF \$3.deps -o \$3 -c \$2.c
+       read DEPS <\$3.deps
+       rm -f \$3.deps
+       redo-ifchange \${DEPS#*:}
+EOF
+chmod +x $3