2011-11-01 22:14:45 +02:00
|
|
|
# bash completion for mkisofs/genisoimage -*- shell-script -*-
|
2009-05-17 22:13:05 +02:00
|
|
|
|
|
|
|
_mkisofs()
|
|
|
|
{
|
2011-04-20 17:02:27 +03:00
|
|
|
local cur prev words cword
|
|
|
|
_init_completion || return
|
2009-05-17 22:13:05 +02:00
|
|
|
|
2009-12-30 00:39:59 +01:00
|
|
|
case $prev in
|
2009-11-22 11:43:26 +01:00
|
|
|
-o|-abstract|-biblio|-check-session|-copyright|-log-file| \
|
|
|
|
-root-info|-prep-boot|-*-list)
|
2009-10-04 19:42:50 +02:00
|
|
|
_filedir
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
-*-charset)
|
|
|
|
COMPREPLY=( $( compgen -W '$( mkisofs -input-charset \
|
|
|
|
help 2>&1 | tail -n +3 )' -- "$cur" ) )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
-uid)
|
|
|
|
_uids
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
-gid)
|
|
|
|
_gids
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
2009-05-17 22:13:05 +02:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
if [[ "$cur" == -* ]]; then
|
2013-02-17 23:18:51 +02:00
|
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -help )' -- "$cur" ) )
|
2009-10-04 19:42:50 +02:00
|
|
|
else
|
|
|
|
_filedir
|
|
|
|
fi
|
2009-05-17 22:13:05 +02:00
|
|
|
|
|
|
|
} &&
|
2010-11-01 19:26:53 +02:00
|
|
|
complete -F _mkisofs mkisofs genisoimage
|
2009-10-01 20:54:51 +03:00
|
|
|
|
2009-10-04 19:42:50 +02:00
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|