autotools, xsltproc: Use _parse_help instead of _longopt.

This commit is contained in:
Ville Skyttä 2011-05-01 12:10:16 +03:00
parent 10cfd72956
commit a785f1c2f9
3 changed files with 7 additions and 6 deletions

View File

@ -32,7 +32,7 @@ _autoconf()
$split && return 0
if [[ "$cur" == -* ]]; then
_longopt $1
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return
fi
@ -69,7 +69,7 @@ _autoreconf()
$split && return 0
if [[ "$cur" == -* ]]; then
_longopt $1
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return 0
fi
@ -103,7 +103,7 @@ _autoscan()
$split && return 0
if [[ "$cur" == -* ]]; then
_longopt $1
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return 0
fi

View File

@ -28,7 +28,7 @@ _automake()
$split && return 0
if [[ "$cur" == -* ]]; then
_longopt $1
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
return
fi
@ -67,7 +67,7 @@ _aclocal()
$split && return 0
_longopt $1
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
} &&
complete -F _aclocal aclocal aclocal-1.11

View File

@ -40,7 +40,8 @@ _xsltproc()
return 0
if [[ "$cur" == -* ]]; then
_longopt xsltproc
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
COMPREPLY=( "${COMPREPLY[@]%:}" )
else
_filedir '@(xsl|xslt|xml)'
fi