You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2014/08/12 00:00:58 UTC
git commit: Merge libck master (0.4.3-6-g747779d) to fix build
Repository: trafficserver
Updated Branches:
refs/heads/master d752e57f7 -> 9da193122
Merge libck master (0.4.3-6-g747779d) to fix build
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/9da19312
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/9da19312
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/9da19312
Branch: refs/heads/master
Commit: 9da193122154ac2dd3ed4b77e84c404d4f1c368d
Parents: d752e57
Author: Phil Sorber <so...@apache.org>
Authored: Mon Aug 11 15:57:58 2014 -0600
Committer: Phil Sorber <so...@apache.org>
Committed: Mon Aug 11 15:57:58 2014 -0600
----------------------------------------------------------------------
lib/ck/configure | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9da19312/lib/ck/configure
----------------------------------------------------------------------
diff --git a/lib/ck/configure b/lib/ck/configure
index b9b6898..1b31294 100755
--- a/lib/ck/configure
+++ b/lib/ck/configure
@@ -144,8 +144,18 @@ generate_stdout()
echo "Documentation will be installed in $MANDIR"
}
-for option in $*; do
- value=`echo "$option" | sed -e 's/^[^=]*=\(.*\)/\1/'`
+for option; do
+ case "$option" in
+ *=?*)
+ value=`expr -- "$option" : '[^=]*=\(.*\)'`
+ ;;
+ *=)
+ value=
+ ;;
+ *)
+ value=yes
+ ;;
+ esac
case "$option" in
--help)
@@ -244,9 +254,8 @@ for option in $*; do
fi
;;
*=*)
- NAME=`expr "$option" : '\([^=]*\)='`
- VALUE=`echo "$value" | sed "s/'/'\\\\\\\\''/g"`
- eval "$NAME='$VALUE'"
+ NAME=`expr -- "$option" : '\([^=]*\)='`
+ eval "$NAME='$value'"
export $NAME
;;
*)