summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2010-10-05 13:05:56 +0200
committerThomas Klausner <wiz@NetBSD.org>2010-10-05 13:06:28 +0200
commitfb354eb03db31eb493c6473c49da0b5f7069b377 (patch)
tree81b896d6993732be77a63ccb2f2792df42ed4c9a /autogen.sh
parent47ac2e8d1f71a88173ecc2bc133a8577b2d95005 (diff)
Use more portable sed construct for quoting expressions.
Remove unused variable.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 33c847cf996f..defc542c41e9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -11,7 +11,7 @@ fi
requote_args ()
{
- sed -e 's/.*configure //' -e 's/=\(\([^"'"'"'-]\|-[^-]\| \)*\)\( \|$\)/="\1" /g'
+ sed -r -e 's/.*configure //' -e 's/(["'"'"'])/\\\1/g' -e 's/=(([^"'"'"'-]|-[^-]| )*)( |$)/="\1" /g'
}
old_args=""