From: Ian Jackson Date: Sun, 29 Dec 2019 13:02:34 +0000 (+0000) Subject: tests/build-common: Copy subdirmk, rather than symlinking X-Git-Tag: subdirmk/0.3~81 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=commitdiff_plain;h=ae3f87445e8e51bc42d3a833f96ff79ca9ffa10d tests/build-common: Copy subdirmk, rather than symlinking 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 --- diff --git a/tests/build-common b/tests/build-common index 84f9597..db751cd 100644 --- a/tests/build-common +++ b/tests/build-common @@ -5,9 +5,14 @@ export SUBDIRMK_REGEN_NDEBUG 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 }