#!/bin/sh set -ev rm -rf $0.dir mkdir $0.dir cd $0.dir git init cat > top.fac < 1.fac > 2.fac EOF git add top.fac cat > fac.sh < 1.fac < foo EOME cat > 2.fac < bar EOME EOF git add fac.sh ${FAC:-../../fac} -v grep foo foo grep bar bar cat > fac.sh < 1.fac < foo EOME cat > 2.fac < bar EOME EOF cat top.fac.tum ${FAC:-../../fac} -v grep one foo grep two bar echo it all worked exit 0