#!/bin/sh set -ev rm -rf $0.dir mkdir $0.dir cd $0.dir echo foo > foo echo bar > bar cat > top.fac < bar > bar < foo | cat input > foo > foo EOF echo good > input git init git add top.fac input ${FAC:-../../fac} -v grep good foo grep good bar echo newer > input ${FAC:-../../fac} grep newer foo grep newer bar exit 0