From 87a9c66e0cd3cff439562f9d3d9ca52db9d9d8d0 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 9 Jul 2015 16:04:11 +0200 Subject: [PATCH] plugins: clone each file individually --- Mk/plugins.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Mk/plugins.mk b/Mk/plugins.mk index 9d1af599a..08de18f83 100644 --- a/Mk/plugins.mk +++ b/Mk/plugins.mk @@ -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"