linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Clement Chauplannaz <chauplac@gmail.com>
To: linus.walleij@linaro.org, mmarek@suse.cz, yann.morin.1998@free.fr
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] scripts/config: fix variable substitution command
Date: Fri, 13 Sep 2013 10:45:13 +0200	[thread overview]
Message-ID: <1379061913-17604-1-git-send-email-chauplac@gmail.com> (raw)
In-Reply-To: <CACW0xKXOKJXW+5m7JirKbsj4Em4SbVV0NeyK2x88x46dfJ4akw@mail.gmail.com>

Commit 229455bc02b87f7128f190c4491b4ceffff38648 accidentally changed the
separator between sed `s' command and its parameters from ':' to '/'.

Revert this change.

Signed-off-by: Clement Chauplannaz <chauplac@gmail.com>
---
 scripts/config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/config b/scripts/config
index 58383e2..ae85564 100755
--- a/scripts/config
+++ b/scripts/config
@@ -80,7 +80,7 @@ txt_subst() {
 	local infile="$3"
 	local tmpfile="$infile.swp"
 
-	sed -e "s/$before/$after/" "$infile" >"$tmpfile"
+	sed -e "s:$before:$after:" "$infile" >"$tmpfile"
 	# replace original file with the edited one
 	mv "$tmpfile" "$infile"
 }
-- 
1.8.3.2.dirty


  reply	other threads:[~2013-09-13  8:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-15 21:17 [pull request] Pull request for branch yem/kconfig-for-next Yann E. MORIN
2013-08-15 21:17 ` [PATCH 1/4] kconfig: switch to "long long" for sanity Yann E. MORIN
2013-08-15 21:17 ` [PATCH 2/4] scripts/config: use sed's POSIX interface Yann E. MORIN
2013-09-12 16:40   ` Linus Walleij
2013-09-13  8:38     ` Clément Chauplannaz
2013-09-13  8:45       ` Clement Chauplannaz [this message]
2013-09-13  9:29         ` [PATCH] scripts/config: fix variable substitution command Linus Walleij
2013-09-13  9:32       ` [PATCH 2/4] scripts/config: use sed's POSIX interface Linus Walleij
2013-09-13  9:54         ` Clément Chauplannaz
2013-09-13 11:00           ` Michal Marek
2013-08-15 21:17 ` [PATCH 3/4] kconfig: silence warning when parsing auto.conf when a symbol has changed type Yann E. MORIN
2013-08-15 21:17 ` [PATCH 4/4] modules: do not depend on kconfig to set 'modules' option to symbol MODULES Yann E. MORIN
2013-08-16 12:48 ` [pull request] Pull request for branch yem/kconfig-for-next Michal Marek
2013-08-16 13:02   ` Yann E. MORIN

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=1379061913-17604-1-git-send-email-chauplac@gmail.com \
    --to=chauplac@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mmarek@suse.cz \
    --cc=yann.morin.1998@free.fr \
    /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;
as well as URLs for NNTP newsgroup(s).