~ubuntu-branches/ubuntu/trusty/dphys-swapfile/trusty

« back to all changes in this revision

Viewing changes to debian/bash-completion

  • Committer: Package Import Robot
  • Author(s): Axel Beckert
  • Date: 2013-10-01 20:20:40 UTC
  • mfrom: (1.2.1) (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20131001202040-he0w469zerrbfofj
Tags: 20100506-1
* Upload to unstable again.
* New upstream release
  + Fixes issues on kfreebsd-*.
* Install bash completion file provided by Hans-Christoph Steiner
  (Closes: #685113) Thanks!
* Install upstream's example configuration file also to /etc/. (Closes:
  #685169)
* Add note to long description about the default values used upon
  installation. (See #596187 for reasoning.)
* Switch to source format "3.0 (quilt)"
  + Remove debian/README.source
* Bump Standards-Version to 3.9.4 (no changes)
* Fix lintian warnings:
  + debian-rules-missing-recommended-target
  + no-upstream-changelog
  + copyright-refers-to-symlink-license
  + init.d-script-does-not-source-init-functions
  + init.d-script-does-not-implement-optional-option status
* Switch Vcs-* headers to GitHub
* Add Elmar to Uploaders.
* Bump debhelper compatibility to 9.
  + Update versioned debhelper build-dependency accordingly.
* Revamp debian/rules:
  + No more clean stamp files manually, done by dh_clean already
  + Use dh_auto_{build,install,clean}
  + Finally switch to a minimal dh7 style debian/rules file
* Apply wrap-and-sort.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Bash completion for the Android SDK tools.
 
2
#
 
3
# Written by Hans-Christoph Steiner, 2012
 
4
#
 
5
# This work is too trival to have any copyright, I hereby wave any copyright
 
6
# and release it into the public domain.
 
7
 
 
8
function _dphys_swapfile()
 
9
{
 
10
  local cur prev opts
 
11
  COMPREPLY=()
 
12
  cur="${COMP_WORDS[COMP_CWORD]}"
 
13
  prev="${COMP_WORDS[COMP_CWORD-1]}"
 
14
  opts="setup swapon swapoff uninstall"
 
15
 
 
16
  if [ ${COMP_CWORD} -eq 1 ]; then
 
17
      COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
 
18
      return 0
 
19
  else  
 
20
      COMPREPLY=""
 
21
      return 0
 
22
  fi
 
23
}
 
24
complete -o default -F _dphys_swapfile dphys-swapfile