diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-01-31 10:19:45 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-01-31 10:19:45 +0000 |
commit | acd78f0dc3e86ffcfc6a08c036bea6bc66d18dc8 (patch) | |
tree | ad91c50d2051b9c4700e34232b390fc64e61625d /www-apps/nanoblogger | |
parent | cleaned thanks to swtaylor (diff) | |
download | historical-acd78f0dc3e86ffcfc6a08c036bea6bc66d18dc8.tar.gz historical-acd78f0dc3e86ffcfc6a08c036bea6bc66d18dc8.tar.bz2 historical-acd78f0dc3e86ffcfc6a08c036bea6bc66d18dc8.zip |
Revision bump; added bash-completion.
Package-Manager: portage-2.0.51-r15
Diffstat (limited to 'www-apps/nanoblogger')
-rw-r--r-- | www-apps/nanoblogger/ChangeLog | 8 | ||||
-rw-r--r-- | www-apps/nanoblogger/Manifest | 13 | ||||
-rw-r--r-- | www-apps/nanoblogger/files/digest-nanoblogger-3.1-r1 (renamed from www-apps/nanoblogger/files/digest-nanoblogger-3.1) | 0 | ||||
-rw-r--r-- | www-apps/nanoblogger/files/nb.bashcomp | 48 | ||||
-rw-r--r-- | www-apps/nanoblogger/nanoblogger-3.1-r1.ebuild (renamed from www-apps/nanoblogger/nanoblogger-3.1.ebuild) | 7 |
5 files changed, 67 insertions, 9 deletions
diff --git a/www-apps/nanoblogger/ChangeLog b/www-apps/nanoblogger/ChangeLog index 222f831b10df..9266a01d283e 100644 --- a/www-apps/nanoblogger/ChangeLog +++ b/www-apps/nanoblogger/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for www-apps/nanoblogger # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/ChangeLog,v 1.1 2005/01/24 11:03:41 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/ChangeLog,v 1.2 2005/01/31 10:19:45 ka0ttic Exp $ + +*nanoblogger-3.1-r1 (31 Jan 2005) + + 31 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> +files/nb.bashcomp, + +nanoblogger-3.1-r1.ebuild, -nanoblogger-3.1.ebuild: + Revision bump; added bash-completion. *nanoblogger-3.1 (24 Jan 2005) diff --git a/www-apps/nanoblogger/Manifest b/www-apps/nanoblogger/Manifest index 0d97903e62af..a91efeeb088b 100644 --- a/www-apps/nanoblogger/Manifest +++ b/www-apps/nanoblogger/Manifest @@ -1,14 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -MD5 7c694f1dd8ff85375a433aa5f09b15dc ChangeLog 370 +MD5 93c6fbb643cdb28c15de1d25624b7989 nanoblogger-3.1-r1.ebuild 1509 +MD5 1b5324b7530075f2c38bf95b973bced3 ChangeLog 570 MD5 f8d10f350e91f30316ea4e1bd1e76470 metadata.xml 254 -MD5 2c9fe39ad5f8e948a5b9381f14773426 nanoblogger-3.1.ebuild 1415 -MD5 1ab32e1e0e5fef5232ec0b69d002f8eb files/digest-nanoblogger-3.1 66 +MD5 1c213e50a94f5d19d1aa1fb5edd93721 files/nb.bashcomp 1389 +MD5 1ab32e1e0e5fef5232ec0b69d002f8eb files/digest-nanoblogger-3.1-r1 66 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) -iD8DBQFB9NYWEZCkKN40op4RAnaNAJ9GWgAaQ+rdtXKcwzQNMhj5/Ju3hACdFzO+ -haa1JjYV/z8DBcis5pvqPio= -=r3kI +iD8DBQFB/gZKEZCkKN40op4RAuEpAKCycSlbM+ULdWmTAypF8NB7Be8AdwCfUBkL +uK2PFc7/bVPz509aPfc04ok= +=2a/Z -----END PGP SIGNATURE----- diff --git a/www-apps/nanoblogger/files/digest-nanoblogger-3.1 b/www-apps/nanoblogger/files/digest-nanoblogger-3.1-r1 index 193625ddb031..193625ddb031 100644 --- a/www-apps/nanoblogger/files/digest-nanoblogger-3.1 +++ b/www-apps/nanoblogger/files/digest-nanoblogger-3.1-r1 diff --git a/www-apps/nanoblogger/files/nb.bashcomp b/www-apps/nanoblogger/files/nb.bashcomp new file mode 100644 index 000000000000..4ce64969b3c8 --- /dev/null +++ b/www-apps/nanoblogger/files/nb.bashcomp @@ -0,0 +1,48 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/files/nb.bashcomp,v 1.1 2005/01/31 10:19:45 ka0ttic Exp $ + +# nanoblogger completion +# author: Aaron Walker <ka0ttic@gentoo.org> + +_nb() +{ + local cur prev opts + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + opts="-a --add -b --blogdir -B --body -c --category --configure \ + --datadir -d --delete -D --desc -e --edit -f --blogconf -h --help \ + -l --list --makepage --manual -m --move -n --author -p --preview \ + -P --publish --template --templatedir -t --title -u --update \ + -v --verbose -V --version" + + if [[ "${cur}" == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=($(compgen -W "${opts}" -- ${cur})) + return 0 + fi + + case "${prev}" in + -b|--*dir) + COMPREPLY=($(compgen -d -S '/' -- ${cur})) + ;; + -f|--blogconf|--template) + COMPREPLY=($(compgen -f -- ${cur})) + ;; + -l|--list) + COMPREPLY=($(compgen -W "all cat current max" -- ${cur})) + ;; + -u|--update) + COMPREPLY=($(compgen -W "all current main max" -- ${cur})) + ;; + ?(-)-@(B|body|c|category|d|delete|D|desc|m|move|n|author|t|title)) + COMPREPLY=() + ;; + *) + COMPREPLY=($(compgen -W "${opts/${prev}}" -- ${cur})) + ;; + esac +} +complete -F _nb nb + +# vim: set ft=sh : diff --git a/www-apps/nanoblogger/nanoblogger-3.1.ebuild b/www-apps/nanoblogger/nanoblogger-3.1-r1.ebuild index 5739fe351981..8211759d4ba0 100644 --- a/www-apps/nanoblogger/nanoblogger-3.1.ebuild +++ b/www-apps/nanoblogger/nanoblogger-3.1-r1.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/nanoblogger-3.1.ebuild,v 1.1 2005/01/24 11:03:41 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/nanoblogger/nanoblogger-3.1-r1.ebuild,v 1.1 2005/01/31 10:19:45 ka0ttic Exp $ + +inherit bash-completion DESCRIPTION="Small and simple weblog engine written in Bash for the command-line" HOMEPAGE="http://nanoblogger.sourceforge.net/" @@ -30,6 +32,7 @@ src_install() { doins nb.conf dodoc ChangeLog dohtml docs/nanoblogger.html + dobashcompletion ${FILESDIR}/nb.bashcomp } pkg_postinst() { @@ -45,5 +48,5 @@ pkg_postinst() { einfo "nanoblogger (with the -b switch), you can set a default value in your" einfo "~/.nb.conf. For example:" einfo ' BLOG_DIR="$HOME/public_html/blog"' - echo + bash-completion_pkg_postinst } |