Docs/cookbook: build from toplevel 'test' instead of toplevel 'all'.

The cookbook examples are interesting as redo tests, but don't need to
be built in order to build redo.
This commit is contained in:
Avery Pennarun 2018-11-28 12:55:49 -05:00
commit 461ef57b26
3 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,4 @@
redo-ifchange doc.list cookbook/all redo-ifchange doc.list
sed 's/\.md/.1/' <doc.list | sed 's/\.md/.1/' <doc.list |
xargs redo-ifchange xargs redo-ifchange

4
Documentation/test.do Normal file
View file

@ -0,0 +1,4 @@
# We don't normally build the cookbook examples, because they're
# not really part of redo itself. But build them when testing,
# as a basic check that redo (and the examples) are valid.
redo cookbook/all

View file

@ -1,3 +1,3 @@
redo-ifchange _all redo-ifchange _all
redo minimal/test t/all redo minimal/test Documentation/test t/all
[ -n "$DO_BUILT" ] || echo "Don't forget to test 'minimal/do -c test'" >&2 [ -n "$DO_BUILT" ] || echo "Don't forget to test 'minimal/do -c test'" >&2