summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2004-09-27 00:49:54 +0000
committerSven Wegener <swegener@gentoo.org>2004-09-27 00:49:54 +0000
commit503ce934310df8545400a59f7eadc8675ceb94cf (patch)
tree3d3780da0ef65c7a4e5e3d4f0631677c8484aa46 /app-crypt/shash/files
parentmodutils damnit (diff)
downloadgentoo-2-503ce934310df8545400a59f7eadc8675ceb94cf.tar.gz
gentoo-2-503ce934310df8545400a59f7eadc8675ceb94cf.tar.bz2
gentoo-2-503ce934310df8545400a59f7eadc8675ceb94cf.zip
Revision bump. Added support for bash-completion. Thanks to James Rowe <jnrowe@ukfsn.org> in bug #64493.
Diffstat (limited to 'app-crypt/shash/files')
-rw-r--r--app-crypt/shash/files/digest-shash-0.2.6-r11
-rw-r--r--app-crypt/shash/files/shash.bash-completion41
2 files changed, 42 insertions, 0 deletions
diff --git a/app-crypt/shash/files/digest-shash-0.2.6-r1 b/app-crypt/shash/files/digest-shash-0.2.6-r1
new file mode 100644
index 000000000000..b1befd302513
--- /dev/null
+++ b/app-crypt/shash/files/digest-shash-0.2.6-r1
@@ -0,0 +1 @@
+MD5 8f38ec66b989fa38275f5170e15241b4 shash-0.2.6.tar.gz 105641
diff --git a/app-crypt/shash/files/shash.bash-completion b/app-crypt/shash/files/shash.bash-completion
new file mode 100644
index 000000000000..9f2212a002be
--- /dev/null
+++ b/app-crypt/shash/files/shash.bash-completion
@@ -0,0 +1,41 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/shash/files/shash.bash-completion,v 1.1 2004/09/27 00:49:54 swegener Exp $
+#
+# shash(1) completion.
+
+have shash &&
+_shash() {
+ local cur prev
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ case "$prev" in
+ -c|--config)
+ _filedir
+ return 0 ;;
+ -o|--keymode)
+ COMPREPLY=( $( compgen -W "$( shash --listkeygen | tail -n +2 )" \
+ -- $cur ) )
+ return ;;
+ -a|--algorithm)
+ COMPREPLY=( $( compgen -W "$( shash --list )" \
+ -- $cur ) )
+ return ;;
+ *)
+ ;;
+ esac
+
+ COMPREPLY=( $( compgen -W '-V -q -m -d -c -b -t -o -i -a -l -k -h -v \
+ -L \
+ --verbose --quiet --nosalt --time --hmac --doublecheck \
+ --check --binary --text --keymode --config --algorithm \
+ --list --key --listkeygen --help --version --license' \
+ -- $cur ) )
+ _filedir
+ return 0
+}
+
+[ -n "${have:-}" ] && complete -F _shash $filenames shash