Author: tille
Date: 2009-10-06 15:07:35 +0000 (Tue, 06 Oct 2009)
New Revision: 4175

Added:
   trunk/packages/kalign/trunk/debian/kalign.bash_completion
Modified:
   trunk/packages/kalign/trunk/debian/changelog
   trunk/packages/kalign/trunk/debian/rules
Log:
Add bash completion


Modified: trunk/packages/kalign/trunk/debian/changelog
===================================================================
--- trunk/packages/kalign/trunk/debian/changelog        2009-10-06 14:44:38 UTC 
(rev 4174)
+++ trunk/packages/kalign/trunk/debian/changelog        2009-10-06 15:07:35 UTC 
(rev 4175)
@@ -1,4 +1,4 @@
-kalign (2.04-2) UNRELEASED; urgency=low
+kalign (2.04-2) unstable; urgency=low
 
   [ David Paleino ]
   * Removed myself from Uploaders
@@ -14,6 +14,9 @@
     - deactivated; upstream does not seem to respond to our request
       to enable versioned tarballs - so the watch file makes no sense
       Closes: #456479
+  * Applied patch to enable bash completion.  Thanks to David Paleino
+    <[email protected]>
+    Closes: #446047
 
  -- Andreas Tille <[email protected]>  Tue, 06 Oct 2009 16:21:45 +0200
 

Added: trunk/packages/kalign/trunk/debian/kalign.bash_completion
===================================================================
--- trunk/packages/kalign/trunk/debian/kalign.bash_completion                   
        (rev 0)
+++ trunk/packages/kalign/trunk/debian/kalign.bash_completion   2009-10-06 
15:07:35 UTC (rev 4175)
@@ -0,0 +1,65 @@
+# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
+# ex: ts=8 sw=8 noet filetype=sh
+#
+# kalign(1) completion
+#
+have kalign && {
+_kalign() {
+       local cur prev
+       
+       COMPREPLY=()
+       cur=`_get_cword`
+       prev=${COMP_WORDS[COMP_CWORD-1]}
+       
+       case "$prev" in
+               -@(i|input|infile|in|o|output|outfile|out))
+                       _filedir
+                       return 0
+                       ;;
+               -@(c|sort))
+                       COMPREPLY=( $( compgen -W "input tree gaps" -- "$cur" ) 
)
+                       return 0
+                       ;;
+               -@(g|feature))
+                       # TODO: finish this list!
+                       COMPREPLY=( $( compgen -W "all maxplp STRUCT PFAM-A" -- 
"$cur" ) )
+                       return 0
+                       ;;
+               -@(d|distance))
+                       COMPREPLY=( $( compgen -W "wu pair" -- "$cur" ) )
+                       return 0
+                       ;;
+               -@(b|guide_tree|tree))
+                       COMPREPLY=( $( compgen -W "nj upgma" -- "$cur" ) )
+                       return 0
+                       ;;
+               -@(f|format))
+                       COMPREPLY=( $( compgen -W "fasta msf aln clu macsim" -- 
"$cur" ) )
+                       return 0
+                       ;;
+               
+       esac
+       
+       if [[ "$cur" == -* ]]; then
+               COMPREPLY=( $( compgen -W "-s -gapopen -gap_open -gpo \
+                       -e -gapextension -gap_ext -gpe \
+                       -t -terminal_gap_extension_penalty -tgpe \
+                       -m -matrix_bonus -bonus \
+                       -c -sort \
+                       -g -feature -same_feature_score -diff_feature_score \
+                       -d -distance \
+                       -b -guide-tree -tree \
+                       -z -zcutoff \
+                       -i -input -infile -in \
+                       -o -output -outfile -out \
+                       -a -gap_inc \
+                       -f -format \
+                       -q -quiet" \
+                       -- "$cur" ) )
+       else
+               _filedir
+       fi
+       return 0
+}
+complete -F _kalign $filenames kalign
+}

Modified: trunk/packages/kalign/trunk/debian/rules
===================================================================
--- trunk/packages/kalign/trunk/debian/rules    2009-10-06 14:44:38 UTC (rev 
4174)
+++ trunk/packages/kalign/trunk/debian/rules    2009-10-06 15:07:35 UTC (rev 
4175)
@@ -2,8 +2,10 @@
 # -*- makefile -*-
 # Build rules for the Debian package kalign
 
+pkg:=kalign
+
 %:
        dh $@
 
 override_dh_auto_install:
-       dh_install
+       install -D -m u=rw,go=r debian/$(pkg).bash_completion 
$(CURDIR)/debian/$(pkg)/etc/bash_completion.d/$(pkg)


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-med-commit

Reply via email to