]>
Commit | Line | Data |
---|---|---|
47359102 JB |
1 | --- opensc-0.15.0/doc/tools/completion-template.orig 1970-01-01 01:00:00.000000000 +0100 |
2 | +++ opensc-0.15.0/doc/tools/completion-template 2016-01-31 12:03:43.666884836 +0100 | |
3 | @@ -0,0 +1,45 @@ | |
4 | +# this was auto-generated by OpenSC/doc/tools/Makefile.am | |
5 | +_FUNCTION_NAME() | |
6 | +{ | |
7 | + COMPREPLY=() | |
8 | + local cur prev split=false | |
9 | + _get_comp_words_by_ref cur prev | |
10 | + | |
11 | + _split_longopt && split=true | |
12 | + | |
13 | + opts="ALLOPTS" | |
14 | + | |
15 | + if [ ${COMP_CWORD} -eq 1 ]; then | |
16 | + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) | |
17 | + return 0 | |
18 | + fi | |
19 | + | |
20 | + case "${prev}" in | |
21 | + OPTSWITHARGS) | |
22 | + return 0 | |
23 | + ;; | |
24 | + *) | |
25 | + COMPREPLY=($(compgen -W "${opts}" -- ${cur})) | |
26 | + return 0 | |
27 | + ;; | |
28 | + esac | |
29 | + | |
30 | + $split && return 0 | |
31 | + | |
32 | + if [[ "$cur" == -* ]]; then | |
33 | + _longopt $1 | |
34 | + return | |
35 | + fi | |
36 | + | |
37 | + _filedir | |
38 | +} | |
39 | +complete -F _FUNCTION_NAME PROGRAM_NAME | |
40 | + | |
41 | + | |
42 | +# Local variables: | |
43 | +# mode: shell-script | |
44 | +# sh-basic-offset: 4 | |
45 | +# sh-indent-comment: t | |
46 | +# indent-tabs-mode: nil | |
47 | +# End: | |
48 | +# ex: ts=4 sw=4 et filetype=sh |