#!/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. >all.do printf 'redo-ifchange a ' >a.do cat <b.do cat <c printf '2 ' redo c printf '3 '