From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: In-Reply-To: <20200618113902.19225-1-rhi@pengutronix.de> MIME-Version: 1.0 Message-Id: From: Michael Olbrich Date: Sat, 20 Jun 2020 00:04:05 +0200 Subject: Re: [ptxdist] [APPLIED] ptxd_template_write_src: print generated files with correct prefix List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber Thanks, applied as e9943e35a599b58639bb5bf75c22f4ec08dabae3. Michael [sent from post-receive hook] On Sat, 20 Jun 2020 00:04:05 +0200, Roland Hieber 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 > Message-Id: <20200618113902.19225-1-rhi@pengutronix.de> > Signed-off-by: Michael Olbrich > > 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