File: build-common

package info (click to toggle)
secnet 0.6.8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,956 kB
  • sloc: ansic: 15,234; python: 1,057; perl: 966; sh: 596; tcl: 484; java: 231; asm: 114; yacc: 89; php: 64; makefile: 48; awk: 40
file content (23 lines) | stat: -rw-r--r-- 508 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# subdirmk - part of the test suite
#  Copyright 2019 Mark Wooding
#  Copyright 2019 Ian Jackson
# SPDX-License-Identifier: LGPL-2.0-or-later
# There is NO WARRANTY.

SUBDIRMK_REGEN_NDEBUG=''
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

	git ls-files -z :. :!example \
	| xargs -0 \
	sh -xec 'rsync -R -l "$@" tests/'$1'/example/subdirmk' x
}