Package: dupload
Version: 2.6.6
Severity: wishlist

I wrote this minimal completion logic script, to help tab-complete. It's
useful to complete on only the .changes files because likely there'll be
many files after 'debuild' of similar names.

-----
# Debian GNU/Linux dupload(1) completion
# Original file:
#   Debian GNU/Linux dput(1) completion
#   Copyright 2002 Roland Mas <[email protected]>
# Modified for dupload(1)
#   Paul Evans <[email protected]>

have dupload &&
_dupload()
{
    local cur prev options paroptions special i delayed_options hosts
    
    COMPREPLY=()
    cur=${COMP_WORDS[COMP_CWORD]}
    prev=${COMP_WORDS[COMP_CWORD-1]}
    options='-c --configfile -d --debug -f --force -k --keep --no --nomail \
        --mailonly --noarchive -p --print -q --quiet -t --to -V -Version'

    case $prev in
        --config|-c)
            COMPREPLY=( $( compgen -o filenames -G "$cur*" ) )
            ;;
        *)
            COMPREPLY=( $(
                    compgen -G "${cur}*.changes"
                    compgen -G "${cur}*.asc"
                    compgen -G "${cur}*.sig"
                    compgen -W "$options" | grep "^$cur"
                ) )
            ;;
    esac

    return 0

}
[ "$have" ] && complete -F _dupload -o filenames dupload
-----


-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25.nim
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages dupload depends on:
ii  perl                          5.10.0-19  Larry Wall's Practical Extraction 
ii  perl-modules [libnet-perl]    5.10.0-19  Core Perl modules

Versions of packages dupload recommends:
ii  openssh-client                1:5.1p1-5  secure shell client, an rlogin/rsh

Versions of packages dupload suggests:
ii  lintian                       1.24.2.1   Debian package checker
ii  nullmailer [mail-transport-ag 1:1.04-1.1 simple relay-only mail transport a

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to