summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-01-31 10:19:45 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-01-31 10:19:45 +0000
commit921ed3263314f2a0932327c44ea3d75f6ec1828a (patch)
tree5bd07fb9ce21106a68b207a03cb812126a073bc8 /www-apps
parentcleaned thanks to swtaylor (diff)
downloadgentoo-2-921ed3263314f2a0932327c44ea3d75f6ec1828a.tar.gz
gentoo-2-921ed3263314f2a0932327c44ea3d75f6ec1828a.tar.bz2
gentoo-2-921ed3263314f2a0932327c44ea3d75f6ec1828a.zip
Revision bump; added bash-completion.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'www-apps')
-rw-r--r--www-apps/nanoblogger/ChangeLog8
-rw-r--r--www-apps/nanoblogger/Manifest17
-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.bashcomp48
-rw-r--r--www-apps/nanoblogger/nanoblogger-3.1-r1.ebuild (renamed from www-apps/nanoblogger/nanoblogger-3.1.ebuild)7
5 files changed, 64 insertions, 16 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..809deb7a5f4f 100644
--- a/www-apps/nanoblogger/Manifest
+++ b/www-apps/nanoblogger/Manifest
@@ -1,14 +1,5 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 7c694f1dd8ff85375a433aa5f09b15dc ChangeLog 370
+MD5 ad1a7bc02bba6f72ae32eb8c1f5a5927 nanoblogger-3.1-r1.ebuild 1506
+MD5 55ff840b1c1c8f241be2dda72cdee6d9 ChangeLog 570
MD5 f8d10f350e91f30316ea4e1bd1e76470 metadata.xml 254
-MD5 2c9fe39ad5f8e948a5b9381f14773426 nanoblogger-3.1.ebuild 1415
-MD5 1ab32e1e0e5fef5232ec0b69d002f8eb files/digest-nanoblogger-3.1 66
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.0 (GNU/Linux)
-
-iD8DBQFB9NYWEZCkKN40op4RAnaNAJ9GWgAaQ+rdtXKcwzQNMhj5/Ju3hACdFzO+
-haa1JjYV/z8DBcis5pvqPio=
-=r3kI
------END PGP SIGNATURE-----
+MD5 5750b8f58e7432140f202713f82bdfe1 files/nb.bashcomp 1288
+MD5 1ab32e1e0e5fef5232ec0b69d002f8eb files/digest-nanoblogger-3.1-r1 66
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
}