Add pack200 --repack completion.

This commit is contained in:
Ville Skyttä 2011-01-17 22:07:33 +02:00
parent 406e8347dd
commit e99645d2b9
2 changed files with 8 additions and 3 deletions

View File

@ -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.

View File

@ -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