From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Thu, 18 Jun 2020 13:39:03 +0200 Message-Id: <20200618113902.19225-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] 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 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 --- 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