r670 - in /trunk/boinc/debian: boinc-client.install changelog extra/bash/ extra/bash/boinc_cmd
fst-guest at users.alioth.debian.org
fst-guest at users.alioth.debian.org
Thu Jun 21 16:37:35 UTC 2007
Author: fst-guest
Date: Thu Jun 21 16:37:35 2007
New Revision: 670
URL: http://svn.debian.org/wsvn/pkg-boinc/?sc=1&rev=670
Log:
Added bash completion for boinc_cmd. It currently only completes boinc_cmd's
basic commands.
Added:
trunk/boinc/debian/extra/bash/
trunk/boinc/debian/extra/bash/boinc_cmd
Modified:
trunk/boinc/debian/boinc-client.install
trunk/boinc/debian/changelog
Modified: trunk/boinc/debian/boinc-client.install
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/boinc-client.install?rev=670&op=diff
==============================================================================
--- trunk/boinc/debian/boinc-client.install (original)
+++ trunk/boinc/debian/boinc-client.install Thu Jun 21 16:37:35 2007
@@ -1,8 +1,6 @@
debian/bug/boinc-client/script usr/share/bug/boinc-client
-debian/conffiles/cc_config.xml etc/boinc-client
-debian/conffiles/global_prefs_override.xml etc/boinc-client
-debian/conffiles/gui_rpc_auth.cfg etc/boinc-client
-debian/conffiles/remote_hosts.cfg etc/boinc-client
+debian/conffiles/* etc/boinc-client
+debian/extra/bash/* etc/bash_completion.d
debian/extra/update-boinc-applinks usr/bin
debian/overrides/boinc-client usr/share/lintian/overrides
debian/tmp/usr/bin/boinc_cmd usr/bin
Modified: trunk/boinc/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/changelog?rev=670&op=diff
==============================================================================
--- trunk/boinc/debian/changelog (original)
+++ trunk/boinc/debian/changelog Thu Jun 21 16:37:35 2007
@@ -28,6 +28,7 @@
* Added /usr/share/bug/boinc-client/script which pastes boinc-client's
init script configuration file (/etc/default/boinc-client) into bug
reports because this might be helpful for debugging.
+ * extra/bash/boinc_cmd: Added bash completion for boinc_cmd.
[ Steffen Moeller ]
* Smallish changes to Debian READMEs and man pages.
@@ -36,7 +37,7 @@
* Added Portuguese (pt.po) by Miguel Figueiredo <elmig at debianpt.org>.
(closes: #428278)
- -- Frank S. Thomas <frank at thomas-alfeld.de> Thu, 21 Jun 2007 16:39:27 +0200
+ -- Frank S. Thomas <frank at thomas-alfeld.de> Thu, 21 Jun 2007 18:32:41 +0200
boinc (5.8.17-2) unstable; urgency=low
Added: trunk/boinc/debian/extra/bash/boinc_cmd
URL: http://svn.debian.org/wsvn/pkg-boinc/trunk/boinc/debian/extra/bash/boinc_cmd?rev=670&op=file
==============================================================================
--- trunk/boinc/debian/extra/bash/boinc_cmd (added)
+++ trunk/boinc/debian/extra/bash/boinc_cmd Thu Jun 21 16:37:35 2007
@@ -1,0 +1,16 @@
+_boinc_cmd()
+{
+ local cur prev opts
+ COMPREPLY=()
+ cur="${COMP_WORDS[COMP_CWORD]}"
+ prev="${COMP_WORDS[COMP_CWORD-1]}"
+ opts="$(boinc_cmd --help 2>&1 | sed -r 's/^[[:space:]](--[a-z_]*).*/\1/' | grep '^--')"
+
+ if [[ "${cur}" == -* ]]; then
+ COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") )
+ return 0
+ fi
+
+}
+complete -F _boinc_cmd boinc_cmd
+# vim: syntax=sh
More information about the pkg-boinc-commits
mailing list