#!/bin/sh -eu # A target built with a default dofile in the same directory must be rebuilt if a more specific dofile appears. test -e a.b.c && \ rm -- a.b.c >all.do cat <"${dofile}" cat <&2 printf 'a.b.c was built with %s, should have been built with %s\n' \ "${text}" "${dofile}" exit 1 fi done