]> git.notmuchmail.org Git - notmuch/commitdiff
Fix option parsing for the case of a value with '='.
authorCarl Worth <cworth@cworth.org>
Fri, 4 Dec 2009 22:50:49 +0000 (14:50 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 4 Dec 2009 22:52:10 +0000 (14:52 -0800)
To support this we need to match the longest-possible suffix and then
strip the shortest-possible prefix.

configure

index 70a3c3d881da5c5c9b0244fd63f3a70adbec6b48..54d55cbacf79acaaa2609afe104b2cfe4e33914d 100755 (executable)
--- a/configure
+++ b/configure
@@ -8,7 +8,7 @@ PREFIX=/usr/local
 
 # option parsing
 for option; do
 
 # option parsing
 for option; do
-    if [ "${option%=*}" = '--prefix' ] ; then
+    if [ "${option%%=*}" = '--prefix' ] ; then
        PREFIX="${option#*=}"
     fi
 done
        PREFIX="${option#*=}"
     fi
 done