#!/bin/sh -eu # When invoked, redo-ood must output targets for which a dependency # changed and targets for which a dependency of a dependency changed # and targets for which a dependency of a dependency of a dependency # changed. >all.do printf 'redo-ifchange a ' >a.do cat <b.do cat <c.do cat <d printf '3 ' redo d printf '4\n'