From: Christian Melki <christian.melki@t2data.com>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] scripts/lib/ptxd_make_xpkg_pkg.sh: Beautify figlet output.
Date: Wed, 1 Sep 2021 13:48:47 +0200 [thread overview]
Message-ID: <20210901114847.2519609-1-christian.melki@t2data.com> (raw)
Not ideal, but long project names with dashes can probably
be split as multiple lines in a figlet issue banner.
Ie, Company longprodname-arch -> Company\nlongprodname-\narch.
Signed-off-by: Christian Melki <christian.melki@t2data.com>
---
scripts/lib/ptxd_make_xpkg_pkg.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 70e1bfb8c..c565f5870 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -743,6 +743,7 @@ install replace figlet:
esac | \
awk '{ if ($0 !~ "^ *$") printf("%s\\n", $0) }' # newlines for sed
} &&
+ value=$(sed 's,-,-\n,g' <<< ${value}) &&
figlet="$(ptxd_figlet_helper "$value" "$escapemode")" &&
sed -i -e "s#${placeholder}#${figlet}#g" "${dirs[@]/%/${dst}}" ||
--
2.30.2
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
reply other threads:[~2021-09-01 11:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210901114847.2519609-1-christian.melki@t2data.com \
--to=christian.melki@t2data.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox