#!/bin/sh set -ev if ! which make; then echo there is no make exit 137 fi rm -rf $0.dir mkdir $0.dir cd $0.dir cat > build.fac < awesome > awesome | echo foo > foo # The following is malformed output | echo hello > /tmp/mistake-$$ && echo baz > baz > /tmp/mistake-$$ EOF git init git add build.fac if ${FAC:-../../fac} --makefile Makefile; then echo this should have failed, since it has malformed output fi cat > build.fac < awesome > awesome | echo foo > foo | echo hello > /tmp/mistake-$$ && echo baz > baz EOF ${FAC:-../../fac} --makefile Makefile grep awesome awesome grep foo foo grep baz baz cat Makefile ${FAC:-../../fac} -c make grep awesome awesome grep foo foo grep baz baz rm -f /tmp/mistake-$$ exit 0