[Bash-completion-commits] [SCM] bash-completion branch, master, updated. d6043b960990e7f55cc23d4c9fce2943de92d046

Ville Skyttä ville.skytta at iki.fi
Mon Jan 17 20:14:40 UTC 2011


The following commit has been merged in the master branch:
commit e99645d2b942b85b3020ee66004fd1b7a0cf6723
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Mon Jan 17 22:07:33 2011 +0200

    Add pack200 --repack completion.

diff --git a/CHANGES b/CHANGES
index bfb7a56..6062a8d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -20,8 +20,8 @@ bash-completion (2.x)
     *.awb, and *.iso (Alioth: #311420) to mplayer filename completions.
   * Add "short" tarball extensions to unxz, unlzma etc completions.
   * Improve /etc/init.d/*, ipmitool, jar, java, javadoc, man, mencoder, mkdir,
-    mplayer, povray, python, rpmbuild, sqlite3, tar, wodim, and general help
-    parsing completions.
+    mplayer, pack200, povray, python, rpmbuild, sqlite3, tar, wodim, and
+    general help parsing completions.
   * Fix p4 and povray completions (Alioth: #312625).
   * Add *.xsd, *.xsl, *.rng, and *.wsdl to xmllint filename completions,
     and *.gz versions of all of the supported ones.
diff --git a/completions/java b/completions/java
index 8365a31..eacd85e 100644
--- a/completions/java
+++ b/completions/java
@@ -356,6 +356,10 @@ _pack200()
             _filedir log
             return 0
             ;;
+        -r|--repack)
+            _filedir jar
+            return 0
+            ;;
     esac
 
     # Check if a pack or a jar was already given.
@@ -374,7 +378,8 @@ _pack200()
                 --deflate-hint= --modification-time= --pass-file= \
                 --unknown-attribute= --class-attribute= --field-attribute= \
                 --method-attribute= --code-attribute= --config-file= \
-                --verbose --quiet --log-file= --help --version -J' -- "$cur" ) )
+                --verbose --quiet --log-file= --help --version -J \
+                --repack' -- "$cur" ) )
             [[ ${#COMPREPLY[@]} -eq 1 && ${COMPREPLY[0]} == *= ]] && \
                 type compopt &>/dev/null && compopt -o nospace
         else

-- 
bash-completion



More information about the Bash-completion-commits mailing list