xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] fix setopt in buildconfigs/enable-xen-config
Date: Mon, 14 Jun 2010 19:20:44 +0100	[thread overview]
Message-ID: <4C1672FC.3020903@eu.citrix.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 24 bytes --]

Regards,

Alex Zeffertt

[-- Attachment #2: enable-xen-config-fix.patch --]
[-- Type: text/x-diff, Size: 612 bytes --]

Fix setopt in case where option is already set but to the wrong value

Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>


diff -r 3903d95733f7 buildconfigs/enable-xen-config
--- a/buildconfigs/enable-xen-config	Fri Jun 11 14:04:36 2010 +0100
+++ b/buildconfigs/enable-xen-config	Mon Jun 14 19:00:25 2010 +0100
@@ -15,7 +15,7 @@
 	VALUE=$2
 
 	# First remove any existing instances of this option
-	sed -e "s/^# ${OPTION} is not set$//g ; s/^^{OPTION}=.$//g" -i "${CONFIG}"
+	sed -e "s/^# ${OPTION} is not set$//g ; s/^${OPTION}=.*$//g" -i "${CONFIG}"
 
 	# Then append the new value
 	case ${VALUE} in

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2010-06-14 18:20 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=4C1672FC.3020903@eu.citrix.com \
    --to=alex.zeffertt@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /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).