OLD | NEW |
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Add programmable completion to some Chromium OS build scripts | 5 # Add programmable completion to some Chromium OS build scripts |
6 | 6 |
7 | 7 |
8 # Look for "--arg=foo" or "--arg foo" (where foo can be an empty string) in the | 8 # Look for "--arg=foo" or "--arg foo" (where foo can be an empty string) in the |
9 # word to be completed. If found, echo "--arg=foo". | 9 # word to be completed. If found, echo "--arg=foo". |
10 # | 10 # |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 if [[ ${arg} == --board=* ]]; then | 58 if [[ ${arg} == --board=* ]]; then |
59 COMPREPLY=( $(compgen -W "$(_board_sysroots)" -- ${arg#--board=}) ) | 59 COMPREPLY=( $(compgen -W "$(_board_sysroots)" -- ${arg#--board=}) ) |
60 return 0 | 60 return 0 |
61 fi | 61 fi |
62 } | 62 } |
63 | 63 |
64 complete -o bashdefault -o default -F _board_sysroot \ | 64 complete -o bashdefault -o default -F _board_sysroot \ |
65 build_autotest.sh \ | 65 build_autotest.sh \ |
66 build_image \ | 66 build_image \ |
67 build_packages \ | 67 build_packages \ |
68 image_to_usb | 68 image_to_usb.sh \ |
| 69 mod_image_for_test.sh |
69 | 70 |
70 | 71 |
71 # echo the existing target board overlays | 72 # echo the existing target board overlays |
72 # | 73 # |
73 _board_overlays() | 74 _board_overlays() |
74 { | 75 { |
75 local overlaydir=../overlays | 76 local overlaydir=../overlays |
76 if [ ! -d ${overlaydir} ]; then | 77 if [ ! -d ${overlaydir} ]; then |
77 echo "" | 78 echo "" |
78 else | 79 else |
(...skipping 12 matching lines...) Expand all Loading... |
91 return 0 | 92 return 0 |
92 fi | 93 fi |
93 } | 94 } |
94 | 95 |
95 complete -o bashdefault -o default -F _board_overlay setup_board | 96 complete -o bashdefault -o default -F _board_overlay setup_board |
96 | 97 |
97 | 98 |
98 ### Local Variables: | 99 ### Local Variables: |
99 ### mode: shell-script | 100 ### mode: shell-script |
100 ### End: | 101 ### End: |
OLD | NEW |