projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c2b31d
)
Fix option parsing for the case of a value with '='.
author
Carl Worth
<cworth@cworth.org>
Fri, 4 Dec 2009 22:50:49 +0000
(14:50 -0800)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/configure
b/configure
index 70a3c3d881da5c5c9b0244fd63f3a70adbec6b48..54d55cbacf79acaaa2609afe104b2cfe4e33914d 100755
(executable)
--- a/
configure
+++ b/
configure
@@
-8,7
+8,7
@@
PREFIX=/usr/local
# option parsing
for option; do
- if [ "${option%=*}" = '--prefix' ] ; then
+ if [ "${option%
%
=*}" = '--prefix' ] ; then
PREFIX="${option#*=}"
fi
done