My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_debuild 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #compdef debuild
  2. # ------------------------------------------------------------------------------
  3. # Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
  4. # All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions are met:
  8. # * Redistributions of source code must retain the above copyright
  9. # notice, this list of conditions and the following disclaimer.
  10. # * Redistributions in binary form must reproduce the above copyright
  11. # notice, this list of conditions and the following disclaimer in the
  12. # documentation and/or other materials provided with the distribution.
  13. # * Neither the name of the zsh-users nor the
  14. # names of its contributors may be used to endorse or promote products
  15. # derived from this software without specific prior written permission.
  16. #
  17. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  18. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  19. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  20. # DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
  21. # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  22. # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  23. # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  24. # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  25. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  26. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  27. # ------------------------------------------------------------------------------
  28. # Description
  29. # -----------
  30. #
  31. # Completion script for debuild 2.10.
  32. #
  33. # Status: incomplete.
  34. #
  35. # ------------------------------------------------------------------------------
  36. # Authors
  37. # -------
  38. #
  39. # * Julien Nicoulaud <julien.nicoulaud@gmail.com>
  40. #
  41. # ------------------------------------------------------------------------------
  42. # FIXME --noconf is only allowed in first position
  43. _arguments \
  44. '(- 1 *)'{-h,--help}'[show help]' \
  45. '(- 1 *)--version[show version and copyright information]' \
  46. {--no-conf,--noconf}'[don'\''t read devscripts config files]' \
  47. {-r-,--rootcmd=}'[command used to become root if debuild not setuid root (default: fakeroot)]: :_command_names' \
  48. '*'{-e-,--preserve-envvar=}'[preserve environment variable]: :_vars' \
  49. '(-e --preserve-envvar)--preserve-env[preserve all environment vars (except PATH)]' \
  50. '*'{-e-,--set-envvar=}'[preserve environment variable]: :_vars -qS=' \
  51. '--prepend-path=[prepend to the sanitised PATH]: :_files -/' \
  52. '(-D)-d[skip checking of build dependencies]' \
  53. '(-d)-D[force checking of build dependencies]' \
  54. '--check-dirname-level[how much to check directory names]:level:((0\:never 1\:only\ if\ program\ changes\ directory\ \(default\) 2\:always))' \
  55. '--check-dirname-regex[Perl regex defining matching directory names, the string PACKAGE will be replaced by the package name (default: '\''PACKAGE(-.+)?'\'')]:regex'
  56. # Local Variables:
  57. # mode: Shell-Script
  58. # sh-indentation: 2
  59. # indent-tabs-mode: nil
  60. # sh-basic-offset: 2
  61. # End:
  62. # vim: ft=zsh sw=2 ts=2 et