[devscripts] 01/01: Added custom bash completion support for debuild, checkbashisms and licensecheck
Nicholas Bamber
periapt at moszumanska.debian.org
Sun Nov 29 21:45:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
periapt pushed a commit to branch master
in repository devscripts.
commit a88c5da49dad49c96ff0fd8be7bfb8d4af10a12f
Author: Nicholas Bamber <nicholas at periapt.co.uk>
Date: Sun Nov 29 21:44:39 2015 +0000
Added custom bash completion support for debuild, checkbashisms and licensecheck
---
debian/changelog | 2 +-
scripts/checkbashisms.bash_completion | 18 ++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 373669e..865a941 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -19,7 +19,7 @@ devscripts (2.15.10) UNRELEASED; urgency=medium
- Added --soap-timeout option to bts
- Added listcachedbugs command to bts
- Split out bts bash completion handling into its own script
- * Added custom bash completion support for debuild and licensecheck
+ * Added custom bash completion support for debuild, checkbashisms and licensecheck
* licensecheck:
- Tweaked parselicense to capture 'and or' as well as
'and/or' in GPL licenses (Closes: #559429)
diff --git a/scripts/checkbashisms.bash_completion b/scripts/checkbashisms.bash_completion
new file mode 100644
index 0000000..1b39163
--- /dev/null
+++ b/scripts/checkbashisms.bash_completion
@@ -0,0 +1,18 @@
+# Debian checkbashisms(1) completion -*- shell-script -*-
+# Copyright: 2015, Nicholas Bamber <nicholas at periapt.co.uk>
+_checkbashisms()
+{
+ local cur prev words cword special
+ _init_completion || return
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '--newline --posix --force --extra' -- "$cur" ) )
+ else
+ COMPREPLY=( $( compgen -o filenames -f -- "$cur" ) )
+ fi
+
+ return 0
+} &&
+complete -F _checkbashisms checkbashisms
+
+# ex: ts=4 sw=4 et filetype=sh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list