Revision: 19427
Author:   [email protected]
Date:     Tue Feb 18 09:12:11 2014 UTC
Log:      Make tools/bash-completion.sh robust against arbitrary CWD

[email protected]

Review URL: https://codereview.chromium.org/168983006
http://code.google.com/p/v8/source/detail?r=19427

Modified:
 /branches/bleeding_edge/tools/bash-completion.sh

=======================================
--- /branches/bleeding_edge/tools/bash-completion.sh Wed Feb 8 17:20:35 2012 UTC +++ /branches/bleeding_edge/tools/bash-completion.sh Tue Feb 18 09:12:11 2014 UTC
@@ -37,7 +37,7 @@
 _v8_flag() {
   local cur defines targets
   cur="${COMP_WORDS[COMP_CWORD]}"
-  defines=$(cat src/flag-definitions.h \
+  defines=$(cat $v8_source/src/flag-definitions.h \
     | grep "^DEFINE" \
     | grep -v "DEFINE_implication" \
     | sed -e 's/_/-/g')
@@ -45,7 +45,7 @@
     | sed -ne 's/^DEFINE-[^(]*(\([^,]*\).*/--\1/p'; \
     echo "$defines" \
     | sed -ne 's/^DEFINE-bool(\([^,]*\).*/--no\1/p'; \
-    cat src/d8.cc \
+    cat $v8_source/src/d8.cc \
     | grep "strcmp(argv\[i\]" \
     | sed -ne 's/^[^"]*"--\([^"]*\)".*/--\1/p')
   COMPREPLY=($(compgen -W "$targets" -- "$cur"))

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to