chiark / gitweb /
tests/intree: Make copy and break out from tests/example
[subdirmk.git] / tests / build-common
1
2 SUBDIRMK_REGEN_NDEBUG=''
3 export SUBDIRMK_REGEN_NDEBUG
4
5 make_copy () {
6         rm -rf tests/$1/example
7         mkdir tests/$1/example
8         git ls-files -z example \
9         | xargs -0 \
10         sh -xec 'rsync -R -l "$@" tests/'$1'/' x
11         rm tests/$1/example/subdirmk
12         ln -sf ../../.. tests/$1/example/subdirmk
13 }