a2x: Split from asciidoc into separate file.

master
Ville Skyttä 2011-11-01 22:23:33 +02:00
parent 52bdba591a
commit 66fc912020
4 changed files with 43 additions and 42 deletions

View File

@ -1,4 +1,3 @@
a2x
aclocal-1.11
alpine
alternatives

View File

@ -1,5 +1,6 @@
bashcompdir = $(pkgdatadir)/completions
bashcomp_DATA = abook \
bashcomp_DATA = a2x \
abook \
aclocal \
add_members \
alias \
@ -327,7 +328,6 @@ EXTRA_DIST = $(bashcomp_DATA) \
_mock _modules _subversion _yum _yum-utils
CLEANFILES = \
a2x \
aclocal-1.11 \
alpine \
alternatives \
@ -514,7 +514,7 @@ symlinks:
rm -f $(targetdir)/$$file && \
$(LN_S) ant $(targetdir)/$$file ; \
done
for file in a2x asciidoc.py ; do \
for file in asciidoc.py ; do \
rm -f $(targetdir)/$$file && \
$(LN_S) asciidoc $(targetdir)/$$file ; \
done

40
completions/a2x Normal file
View File

@ -0,0 +1,40 @@
# a2x(1) completion -*- shell-script -*-
_a2x()
{
local cur prev words cword split
_init_completion -s || return
case $prev in
-a|--attribute|--asciidoc-opts|--dblatex-opts|--fop-opts|-h|--help|\
--version|--xsltproc-opts)
return
;;
-D|--destination-dir|--icons-dir)
_filedir -d
return
;;
--doctype|-d)
_xfunc asciidoc _asciidoc_doctype
return
;;
--stylesheet)
_filedir css
return
;;
esac
$split && return
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' \
-- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
return
fi
_filedir
} &&
complete -F _a2x a2x
# ex: ts=4 sw=4 et filetype=sh

View File

@ -49,42 +49,4 @@ _asciidoc()
} &&
complete -F _asciidoc asciidoc asciidoc.py
_a2x()
{
local cur prev words cword split
_init_completion -s || return
case $prev in
-a|--attribute|--asciidoc-opts|--dblatex-opts|--fop-opts|-h|--help|\
--version|--xsltproc-opts)
return
;;
-D|--destination-dir|--icons-dir)
_filedir -d
return
;;
--doctype|-d)
_asciidoc_doctype
return
;;
--stylesheet)
_filedir css
return
;;
esac
$split && return
if [[ $cur == -* ]]; then
COMPREPLY=( $( compgen -W '$( _parse_help "$1" --help )' \
-- "$cur" ) )
[[ $COMPREPLY == *= ]] && compopt -o nospace
return
fi
_filedir
} &&
complete -F _a2x a2x
# ex: ts=4 sw=4 et filetype=sh