Hey all,
After my chat with Leif chat on Thurs, one thing I thought about was bash completion for uefi-build.sh.
Turns out it's quite easy! I just pushed this commit to uefi-tools.git [1]. It's quite dumb in that you can autocomplete "DEBUG" or "RELEASE" even without the "-b" parameter, but hey, it makes my life easier :-)
Cheers, Ryan.
commit dc3ba99d46ecb87c529a475d5ff6b840cd2f7c8d Author: Ryan Harkin ryan.harkin@linaro.org Date: Tue Jun 11 13:00:12 2013 +0100
uefi-build: add bash completion script
Copy this script into the bash completion directory to easy entering parameters:
$ sudo cp uefi-build.sh.bash_completion \ /etc/bash_completion.d/uefi-build.sh
Signed-off-by: Ryan Harkin ryan.harkin@linaro.org
diff --git a/uefi-build.sh.bash_completion b/uefi-build.sh.bash_completion new file mode 100644 index 0000000..f0a5305 --- /dev/null +++ b/uefi-build.sh.bash_completion @@ -0,0 +1,24 @@ +# bash completion for uefi-build.sh +# copy this file to /etc/bash_completion.d/uefi-build.s + +have uefi-build.sh && +_uefi-build.sh() +{ + local cur prev + + COMPREPLY=() + _get_comp_words_by_ref -n = cur + + _expand || return 0 + + COMPREPLY=( $( compgen -W '--help -b --build RELEASE DEBUG a5 a9 tc1 tc2 panda origen arndale rtsm_a9x4 rtsm_a15x1 rtsm_a15mpcore rtsm_aarch6 +} && +complete -F _uefi-build.sh uefi-build.sh + +# Local variables: +# mode: shell-script +# sh-basic-offset: 4 +# sh-indent-comment: t +# indent-tabs-mode: nil +# End: +# ex: ts=4 sw=4 et filetype=sh
[1] http://git.linaro.org/gitweb?p=arm/uefi/uefi-tools.git%3Ba=summary
boot-architecture@lists.linaro.org