[ooo-build-commit] .: autogen.sh

Thomas Klausner tklausner at kemper.freedesktop.org
Tue Oct 5 04:06:51 PDT 2010


 autogen.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c70a2798fdd6abc5a894bb9f4da99e242c50641b
Author: Thomas Klausner <wiz at NetBSD.org>
Date:   Tue Oct 5 13:05:56 2010 +0200

    Use more portable sed construct for quoting expressions.
    
    Remove unused variable.

diff --git a/autogen.sh b/autogen.sh
index 33c847c..defc542 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=""


More information about the ooo-build-commit mailing list