This is more like it will be in someone's project.  Also it prevents
us from accidentally touching anything in the source tree.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
 make_copy () {
        rm -rf tests/$1/example
        mkdir tests/$1/example
+
        git ls-files -z example \
        | xargs -0 \
        sh -xec 'rsync -R -l "$@" tests/'$1'/' x
+
        rm tests/$1/example/subdirmk
-       ln -sf ../../.. tests/$1/example/subdirmk
+
+       git ls-files -z :. :!example \
+       | xargs -0 \
+       sh -xec 'rsync -R -l "$@" tests/'$1'/example/subdirmk' x
 }