chiark / gitweb /
84f95977cbb920bcbf86c7dcfd478cc60c2546ca
[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 }