mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_template_write_src: print generated files with correct prefix
@ 2020-06-18 11:39 Roland Hieber
  2020-06-19 22:04 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Hieber @ 2020-06-18 11:39 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

The second tar can only print the file names in the archive, and since
the first tar does not store the original path and since the files come
from the template path, we could not use that path anyway. Do some
additional handling to print the full paths of the generated files after
unpacking them to the destination.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 scripts/lib/ptxd_lib_template.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh
index 805d8d9d3dac..6210345c730d 100644
--- a/scripts/lib/ptxd_lib_template.sh
+++ b/scripts/lib/ptxd_lib_template.sh
@@ -229,7 +229,10 @@ ptxd_template_write_src() {
     template_src="$(ptxd_template_file "${action}")" &&
     mkdir -p "${dst}" &&
     tar -C "${template_src}" -cf - --exclude .svn . | \
-	tar -C "${dst}" -xvf - &&
+	tar -C "${dst}" -xf - &&
+    for file in "${dst}"/*; do
+	echo "generating $(ptxd_template_print_path "$file")"
+    done &&
 
     if [ ! -e "${dst}/wizard.sh" ]; then
 	return
-- 
2.27.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] ptxd_template_write_src: print generated files with correct prefix
  2020-06-18 11:39 [ptxdist] [PATCH] ptxd_template_write_src: print generated files with correct prefix Roland Hieber
@ 2020-06-19 22:04 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2020-06-19 22:04 UTC (permalink / raw)
  To: ptxdist; +Cc: Roland Hieber

Thanks, applied as e9943e35a599b58639bb5bf75c22f4ec08dabae3.

Michael

[sent from post-receive hook]

On Sat, 20 Jun 2020 00:04:05 +0200, Roland Hieber <rhi@pengutronix.de> wrote:
> The second tar can only print the file names in the archive, and since
> the first tar does not store the original path and since the files come
> from the template path, we could not use that path anyway. Do some
> additional handling to print the full paths of the generated files after
> unpacking them to the destination.
> 
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> Message-Id: <20200618113902.19225-1-rhi@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh
> index f39e6e033e97..3d47cd85a4c4 100644
> --- a/scripts/lib/ptxd_lib_template.sh
> +++ b/scripts/lib/ptxd_lib_template.sh
> @@ -203,7 +203,10 @@ ptxd_template_write_src() {
>      template_src="$(ptxd_template_file "${action}")" &&
>      mkdir -p "${dst}" &&
>      tar -C "${template_src}" -cf - --exclude .svn . | \
> -	tar -C "${dst}" -xvf - &&
> +	tar -C "${dst}" -xf - &&
> +    for file in "${dst}"/*; do
> +	echo "generating $(ptxd_template_print_path "$file")"
> +    done &&
>  
>      if [ ! -e "${dst}/wizard.sh" ]; then
>  	return

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-19 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18 11:39 [ptxdist] [PATCH] ptxd_template_write_src: print generated files with correct prefix Roland Hieber
2020-06-19 22:04 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox