diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-03-11 10:21:33 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-03-11 10:21:33 +0000 |
commit | 4fae19af21ab2a068bafd8a7bf0262ad687c3589 (patch) | |
tree | ff908f37d189e298c96f9e22fef7986774d53b1c /app-misc/devtodo | |
parent | add hard dep on >=pango-1.8.1 to get around font rendering problems (diff) | |
download | gentoo-2-4fae19af21ab2a068bafd8a7bf0262ad687c3589.tar.gz gentoo-2-4fae19af21ab2a068bafd8a7bf0262ad687c3589.tar.bz2 gentoo-2-4fae19af21ab2a068bafd8a7bf0262ad687c3589.zip |
Rewrote bash completion.
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-misc/devtodo')
-rw-r--r-- | app-misc/devtodo/ChangeLog | 6 | ||||
-rw-r--r-- | app-misc/devtodo/Manifest | 14 | ||||
-rw-r--r-- | app-misc/devtodo/files/devtodo.bash-completion | 161 |
3 files changed, 50 insertions, 131 deletions
diff --git a/app-misc/devtodo/ChangeLog b/app-misc/devtodo/ChangeLog index f60c66dc08c2..99d5ecd15ade 100644 --- a/app-misc/devtodo/ChangeLog +++ b/app-misc/devtodo/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-misc/devtodo # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/devtodo/ChangeLog,v 1.40 2005/02/06 20:07:21 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/devtodo/ChangeLog,v 1.41 2005/03/11 10:21:33 ka0ttic Exp $ + + 11 Mar 2005; Aaron Walker <ka0ttic@gentoo.org> + files/devtodo.bash-completion: + Rewrote bash completion. 06 Feb 2005; Joshua Kinard <kumba@gentoo.org> devtodo-0.1.18-r2.ebuild: Marked stable on mips. diff --git a/app-misc/devtodo/Manifest b/app-misc/devtodo/Manifest index 521a70d8e15f..d525eebdb1f5 100644 --- a/app-misc/devtodo/Manifest +++ b/app-misc/devtodo/Manifest @@ -1,13 +1,13 @@ -MD5 9b7392a401ba600f6c8ebef225653411 ChangeLog 5988 +MD5 1f4cd28397064161d806b7046befa06a devtodo-0.1.18-r2.ebuild 1339 MD5 7682710f31d259c52a0dd3f11cfca558 devtodo-0.1.17-r2.ebuild 1667 MD5 da5d37350b247346d077883105398d7c devtodo-0.1.18-r1.ebuild 1345 -MD5 1f4cd28397064161d806b7046befa06a devtodo-0.1.18-r2.ebuild 1339 +MD5 c049687e4c534ca74ccf9b3415fd01fa ChangeLog 6098 MD5 99ce5509db4b50f28a1f6675f8c09b2b metadata.xml 258 -MD5 d2457f597a941172dfdc9e12d13ce605 files/devtodo-0.1.18-gentoo.diff 4853 -MD5 404d78d738ead3b99865b3f9cb33177d files/devtodo-fix-TERM-sigabrt.patch 758 -MD5 68c51e9b769e87f037a34aa64bbc911f files/devtodo-fix-cd-builtin.patch 303 -MD5 d32e7456f09dcc45419319fcf1df8ae0 files/devtodo.bash-completion 3319 -MD5 48d3c0943acaae812475061a16fe6eb9 files/devtodo.patch 2359 MD5 cb4cff0cd869696d1207553de89551c1 files/digest-devtodo-0.1.17-r2 66 MD5 e254b7fe4623f6fb5dfb4c9169e75ef7 files/digest-devtodo-0.1.18-r1 66 MD5 e254b7fe4623f6fb5dfb4c9169e75ef7 files/digest-devtodo-0.1.18-r2 66 +MD5 404d78d738ead3b99865b3f9cb33177d files/devtodo-fix-TERM-sigabrt.patch 758 +MD5 d2457f597a941172dfdc9e12d13ce605 files/devtodo-0.1.18-gentoo.diff 4853 +MD5 68c51e9b769e87f037a34aa64bbc911f files/devtodo-fix-cd-builtin.patch 303 +MD5 a1478f8ebbd557e7a02db6b01fe37a91 files/devtodo.bash-completion 1437 +MD5 48d3c0943acaae812475061a16fe6eb9 files/devtodo.patch 2359 diff --git a/app-misc/devtodo/files/devtodo.bash-completion b/app-misc/devtodo/files/devtodo.bash-completion index 1eb92e5b07cf..9429504fe6c1 100644 --- a/app-misc/devtodo/files/devtodo.bash-completion +++ b/app-misc/devtodo/files/devtodo.bash-completion @@ -1,129 +1,44 @@ -# Copyright 1999-2004 Gentoo Foundation +# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-misc/devtodo/files/devtodo.bash-completion,v 1.2 2004/11/13 14:43:50 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-misc/devtodo/files/devtodo.bash-completion,v 1.3 2005/03/11 10:21:33 ka0ttic Exp $ -# devtodo completion -# original author: Aaron Walker <ka0ttic@gentoo.org> +# bash command-line completion for devtodo +# Author: Aaron Walker <ka0ttic@gentoo.org> _devtodo() { - local cur prev - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - - if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then - COMPREPLY=($(compgen -W "-v --verbose -a --add -g --graft \ - -l --link -R --reparent -p --priority -e --edit --remove \ - -d --done -D --not-done --global-database -G --global --database \ - -T --TODO -A --all -f --filter --colour --force-colour --mono \ - --help --version --title --date-format --format --use-format \ - --sort --paranoid --database-loaders --backup -s --summary \ - --timeout" -- "${cur}")) - fi - - case "${prev}" in - -p|--priority) - COMPREPLY=($(compgen -W "default veryhigh high medium low \ - verylow" -- "${cur}")) - ;; - - --database-loaders) - COMPREPLY=($(compgen -W "xml binary" -- "${cur}")) - ;; - - -l|--link|--*database) - COMPREPLY=($(compgen -o filenames -A file -- "${cur}")) - ;; - esac + local cur prev opts + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + opts="-v --verbose -a --add -g --graft -l --link -R --reparent + -p --priority -e --edit --remove -d --done -D --not-done + --global-database -G --global --database -T --TODO -A --all + -f --filter --colour --force-colour --mono --help --version + --title --date-format --format --use-format --sort --paranoid + --database-loaders --backup -s --summary -c --comment --timeout + --purge" + + if [[ "${cur}" == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + fi + + case "${prev}" in + -p|--priority) + COMPREPLY=( $(compgen -W "default veryhigh high medium low verylow" \ + -- ${cur}) ) + ;; + --database-loaders) + COMPREPLY=( $(compgen -W "xml binary" -- ${cur}) ) + ;; + -l|--link|--*database) + COMPREPLY=( $(compgen -f -- ${cur}) ) + ;; + *) + COMPREPLY=() + ;; + esac } +complete -o filenames -F _devtodo devtodo todo tda tde tdr tdd -_tda() { - local cur prev - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - - if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then - COMPREPLY=($(compgen -W "-v --verbose -g --graft -p --priority \ - -G --global --global-database --database --mono --help --version \ - -l --link" -- "${cur}")) - fi - - case "${prev}" in - -p|--priority) - COMPREPLY=($(compgen -W "default veryhigh high medium low \ - verylow" -- "${cur}")) - ;; - - -l|--link|--*database) - COMPREPLY=($(compgen -o filenames -A file -- "${cur}")) - ;; - esac -} - -_tde() { - local cur prev - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - - if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then - COMPREPLY=($(compgen -W "-v --verbose -p --priority -G --global \ - --global-database --database --mono --help --version --title -c \ - --comment"-- "${cur}")) - fi - - case "${prev}" in - -p|--priority) - COMPREPLY=($(compgen -W "default veryhigh high medium low \ - verylow" -- "${cur}")) - ;; - - --*database) - COMPREPLY=($(compgen -o filenames -A file -- "${cur}")) - ;; - esac -} - -_tdr() { - local cur prev - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - - if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then - COMPREPLY=($(compgen -W "-v --verbose --global-database -G --global \ - --database --mono --help --version" -- "${cur}")) - fi - - case "${prev}" in - --*database) - COMPREPLY=($(compgen -o filenames -A file -- "${cur}")) - ;; - esac -} - -_tdd() { - local cur prev - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" - - if [[ "${cur}" == -* ]] || [[ ${COMP_CWORD} -eq 1 ]]; then - COMPREPLY=($(compgen -W "-v --verbose --global-database -G --global \ - --database --mono --help --version" -- "${cur}")) - fi - - case "${prev}" in - --*database) - COMPREPLY=($(compgen -o filenames -A file -- "${cur}")) - ;; - esac -} - -complete -F _devtodo devtodo -complete -F _devtodo todo -complete -F _tda tda -complete -F _tde tde -complete -F _tdr tdr -complete -F _tdd tdd +# vim: set ft=sh tw=80 sw=4 et : |