mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
plugins: clone each file individually
This commit is contained in:
parent
df39c2dc2c
commit
87a9c66e0c
1 changed files with 4 additions and 3 deletions
|
|
@ -44,9 +44,10 @@ umount: check
|
|||
install: check
|
||||
# move all sources to their destination
|
||||
@mkdir -p ${DESTDIR}/usr/local
|
||||
@(cd ${.CURDIR}/src; find * -type f) | \
|
||||
(xargs -n1 tar -C ${.CURDIR}/src -cpf -) | \
|
||||
tar -C ${DESTDIR}/usr/local -xpf -
|
||||
@(cd ${.CURDIR}/src; find * -type f) | while read FILE; do \
|
||||
tar -C ${.CURDIR}/src -cpf - $${FILE} | \
|
||||
tar -C ${DESTDIR}/usr/local -xpf -; \
|
||||
done
|
||||
# finally pretty-print a list of files present
|
||||
@(cd ${.CURDIR}/src; find * -type f) | \
|
||||
xargs -n1 printf "/usr/local/%s\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue