Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308518
b: refs/heads/master
c: d6686da
h: refs/heads/master
v: v3
  • Loading branch information
Yann E. MORIN authored and Michal Marek committed May 15, 2012
1 parent f5d2506 commit 26d3c3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9f420bf0f4a74e404b73b42b7fc3c85c20c64ea7
refs/heads/master: d6686da814c884e341d3bd8aa54947c91cb678be
11 changes: 7 additions & 4 deletions trunk/scripts/config
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ while [ "$1" != "" ] ; do
;;

--set-str)
set_var "CONFIG_$ARG" "CONFIG_$ARG=\"$1\""
# sed swallows one level of escaping, so we need double-escaping
set_var "CONFIG_$ARG" "CONFIG_$ARG=\"${1//\"/\\\\\"}\""
shift
;;

Expand All @@ -124,9 +125,11 @@ while [ "$1" != "" ] ; do
if [ $? != 0 ] ; then
echo undef
else
V="${V/CONFIG_$ARG=/}"
V="${V/\"/}"
echo "$V"
V="${V/#CONFIG_$ARG=/}"
V="${V/#\"/}"
V="${V/%\"/}"
V="${V/\\\"/\"}"
echo "${V}"
fi
fi
;;
Expand Down

0 comments on commit 26d3c3d

Please sign in to comment.