mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Ulrich Ölmann" <u.oelmann@pengutronix.de>
To: PTXdist Development Mailing List <ptxdist@pengutronix.de>
Cc: "Ulrich Ölmann" <u.oelmann@pengutronix.de>
Subject: [ptxdist] [PATCH 3/5] templates: wizard.sh: use only one sed process
Date: Wed,  5 Jun 2019 01:16:53 +0200	[thread overview]
Message-ID: <20190604231655.13949-4-u.oelmann@pengutronix.de> (raw)
In-Reply-To: <20190604231655.13949-1-u.oelmann@pengutronix.de>

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
---
 rules/templates/src-autoconf-lib/wizard.sh     | 6 +++---
 rules/templates/src-autoconf-prog/wizard.sh    | 6 +++---
 rules/templates/src-autoconf-proglib/wizard.sh | 6 +++---
 rules/templates/src-cmake-prog/wizard.sh       | 4 ++--
 rules/templates/src-linux-driver/wizard.sh     | 4 ++--
 rules/templates/src-make-prog/wizard.sh        | 4 ++--
 rules/templates/src-qmake-prog/wizard.sh       | 4 ++--
 rules/templates/src-stellaris/wizard.sh        | 4 ++--
 8 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/rules/templates/src-autoconf-lib/wizard.sh b/rules/templates/src-autoconf-lib/wizard.sh
index e75b96e404de..a451b4f71e49 100644
--- a/rules/templates/src-autoconf-lib/wizard.sh
+++ b/rules/templates/src-autoconf-lib/wizard.sh
@@ -28,8 +28,8 @@ for i in \
 	INSTALL \
 	internal.h \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" $i
-	sed -i -e "s/\@namenodash\@/${NAME_NODASH}/g" $i
-	sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i
+	sed -i -e "s/\@name\@/${NAME}/g" \
+	       -e "s/\@namenodash\@/${NAME_NODASH}/g" \
+	       -e "s/\@NAME\@/${NAME_UP}/g" $i
 done
 
diff --git a/rules/templates/src-autoconf-prog/wizard.sh b/rules/templates/src-autoconf-prog/wizard.sh
index 4b36c5e1f6f0..b2d78f5d592d 100644
--- a/rules/templates/src-autoconf-prog/wizard.sh
+++ b/rules/templates/src-autoconf-prog/wizard.sh
@@ -24,8 +24,8 @@ for i in \
 	INSTALL \
 	internal.h \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" $i
-	sed -i -e "s/\@namenodash\@/${NAME_NODASH}/g" $i
-	sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i
+	sed -i -e "s/\@name\@/${NAME}/g" \
+	       -e "s/\@namenodash\@/${NAME_NODASH}/g" \
+	       -e "s/\@NAME\@/${NAME_UP}/g" $i
 done
 
diff --git a/rules/templates/src-autoconf-proglib/wizard.sh b/rules/templates/src-autoconf-proglib/wizard.sh
index 7c10b35f856b..f84ca8da8a12 100644
--- a/rules/templates/src-autoconf-proglib/wizard.sh
+++ b/rules/templates/src-autoconf-proglib/wizard.sh
@@ -30,7 +30,7 @@ for i in \
 	INSTALL \
 	internal.h \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" $i
-	sed -i -e "s/\@namenodash\@/${NAME_NODASH}/g" $i
-	sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i
+	sed -i -e "s/\@name\@/${NAME}/g" \
+	          "s/\@namenodash\@/${NAME_NODASH}/g" \
+	          "s/\@NAME\@/${NAME_UP}/g" $i
 done
diff --git a/rules/templates/src-cmake-prog/wizard.sh b/rules/templates/src-cmake-prog/wizard.sh
index 6cd7ccbbfb1f..253eedca9cce 100644
--- a/rules/templates/src-cmake-prog/wizard.sh
+++ b/rules/templates/src-cmake-prog/wizard.sh
@@ -13,7 +13,7 @@ for i in \
 	CMakeLists.txt \
 	"${NAME}.cpp" \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" $i
-	sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i
+	sed -i -e "s/\@name\@/${NAME}/g" \
+	       -e "s/\@NAME\@/${NAME_UP}/g" $i
 done
 
diff --git a/rules/templates/src-linux-driver/wizard.sh b/rules/templates/src-linux-driver/wizard.sh
index 61b31a845823..20c8df88a38c 100644
--- a/rules/templates/src-linux-driver/wizard.sh
+++ b/rules/templates/src-linux-driver/wizard.sh
@@ -13,7 +13,7 @@ for i in \
 	Makefile \
 	"${NAME}.c" \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" $i
-	sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i
+	sed -i -e "s/\@name\@/${NAME}/g" \
+	       -e "s/\@NAME\@/${NAME_UP}/g" $i
 done
 
diff --git a/rules/templates/src-make-prog/wizard.sh b/rules/templates/src-make-prog/wizard.sh
index 61b31a845823..20c8df88a38c 100644
--- a/rules/templates/src-make-prog/wizard.sh
+++ b/rules/templates/src-make-prog/wizard.sh
@@ -13,7 +13,7 @@ for i in \
 	Makefile \
 	"${NAME}.c" \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" $i
-	sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i
+	sed -i -e "s/\@name\@/${NAME}/g" \
+	       -e "s/\@NAME\@/${NAME_UP}/g" $i
 done
 
diff --git a/rules/templates/src-qmake-prog/wizard.sh b/rules/templates/src-qmake-prog/wizard.sh
index 497706e2caf5..cd0b94f4cdc8 100644
--- a/rules/templates/src-qmake-prog/wizard.sh
+++ b/rules/templates/src-qmake-prog/wizard.sh
@@ -14,7 +14,7 @@ for i in \
 	"${NAME}.pro" \
 	"${NAME}.cpp" \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" $i
-	sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i
+	sed -i -e "s/\@name\@/${NAME}/g" \
+	       -e "s/\@NAME\@/${NAME_UP}/g" $i
 done
 
diff --git a/rules/templates/src-stellaris/wizard.sh b/rules/templates/src-stellaris/wizard.sh
index 8ebce80c08b2..8350fc40e4d5 100644
--- a/rules/templates/src-stellaris/wizard.sh
+++ b/rules/templates/src-stellaris/wizard.sh
@@ -15,7 +15,7 @@ for i in \
 	Makefile.in \
 	"${NAME}.c" \
 ; do
-	sed -i -e "s/\@name\@/${NAME}/g" $i
-	sed -i -e "s/\@NAME\@/${NAME_UP}/g" $i
+	sed -i -e "s/\@name\@/${NAME}/g" \
+	       -e "s/\@NAME\@/${NAME_UP}/g" $i
 done
 
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2019-06-04 23:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-04 23:16 [ptxdist] [PATCH 0/5] Clean up templates and add src-meson-prog template Ulrich Ölmann
2019-06-04 23:16 ` [ptxdist] [PATCH 1/5] templates: wizard.sh: remove unused variable Ulrich Ölmann
2019-06-04 23:16 ` [ptxdist] [PATCH 2/5] templates: wizard.sh: use neat parameter expansion and prevent word splitting Ulrich Ölmann
2019-06-04 23:16 ` Ulrich Ölmann [this message]
2019-06-04 23:16 ` [ptxdist] [PATCH 4/5] templates: add src-meson-prog template Ulrich Ölmann
2019-06-04 23:16 ` [ptxdist] [PATCH 5/5] templates: src-meson-prog: introduce version into template project Ulrich Ölmann

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=20190604231655.13949-4-u.oelmann@pengutronix.de \
    --to=u.oelmann@pengutronix.de \
    --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