* Re: [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion
2001-12-09 22:03 ` Zach Forrest
@ 2001-12-09 20:51 ` Chad Huneycutt
2001-12-09 23:52 ` Zach Forrest
2001-12-09 22:48 ` Zach Forrest
1 sibling, 1 reply; 5+ messages in thread
From: Chad Huneycutt @ 2001-12-09 20:51 UTC (permalink / raw
To: gentoo-dev
Zach Forrest wrote:
> 2) This may have something to do with the following condition:
>
> if [ -z "`use build`" ]
This guard is generally used when making a simplified ebuild to be used
with the "build image". Or the opposite, in this case. Only build the
docs if this is not for the build image.
--
Chad M Huneycutt
Ph.D. Student
http://www.cc.gatech.edu
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion
[not found] <200112092010.ACU39946@thor.inter.net.il>
@ 2001-12-09 20:59 ` Tom von Schwerdtner
2001-12-09 22:03 ` Zach Forrest
0 siblings, 1 reply; 5+ messages in thread
From: Tom von Schwerdtner @ 2001-12-09 20:59 UTC (permalink / raw
To: gentoo-dev
Hey,
A few questions:
1) What do these 'service completions' provide over the programmable
copletions in the current bash in portage?
2) Why arent the example docs that come with the curren bash installed?
There is some completion code in there...
3) The bash homepage isnt http://www.gnu.org/software/bash/bash.html, its
http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
-Tom
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion
2001-12-09 20:59 ` [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion Tom von Schwerdtner
@ 2001-12-09 22:03 ` Zach Forrest
2001-12-09 20:51 ` Chad Huneycutt
2001-12-09 22:48 ` Zach Forrest
0 siblings, 2 replies; 5+ messages in thread
From: Zach Forrest @ 2001-12-09 22:03 UTC (permalink / raw
To: gentoo-dev
1) The best way to get a better idea of what the patch does is to look
through the patch file, but basically it allows you to complete on
services in init.d followed by the scripts available commands. After
looking at bash_completion a little more closely, it seems that service
completion is a little RedHat specific at the moment, but I'll try to
come up with a more generic one.
More precisely, it adds bash_servicename_completion_function (text,
state) and related code to bashline.c/h.
Maybe I should just forget the patch and make a separate package.
2) This may have something to do with the following condition:
if [ -z "`use build`" ]
This is from Daniels Bash 2.04 ebuild. In make.conf, it says not to set
the 'build' USE flag and it looks like this flag is used to build the
docs in this particular ebuild. So, can't answer this very well. Any help?
You're right that bash does have example completion code and
bash_completion is based on this.
3) Again, this was the homepage defined in the previous ebuild. I did
check out the site you mentioned and it does seem to be the homepage. It
does say though, that it is a GNU project so I'm inclined to leave it as
is for now.
Finale) Yes, I've made a decision: I'm going to make a separate package
without the service completion patch. This seems to be the simple and
straight forward approach for now.
Zach
Tom von Schwerdtner wrote:
> Hey,
>
> A few questions:
>
> 1) What do these 'service completions' provide over the programmable
> copletions in the current bash in portage?
>
> 2) Why arent the example docs that come with the curren bash installed?
> There is some completion code in there...
>
> 3) The bash homepage isnt http://www.gnu.org/software/bash/bash.html, its
> http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
>
>
> -Tom
>
>
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion
2001-12-09 22:03 ` Zach Forrest
2001-12-09 20:51 ` Chad Huneycutt
@ 2001-12-09 22:48 ` Zach Forrest
1 sibling, 0 replies; 5+ messages in thread
From: Zach Forrest @ 2001-12-09 22:48 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
I've given in to simplicity. The bash package is now just that --
nothing fancy. I've created a new package, app-admin/bash-completion,
for those interested in some new, swanky bash functionality. Did I
mention that 'cd' only completes on directories?
Zach
[-- Attachment #2: bash-2.05a-r2.ebuild --]
[-- Type: text/plain, Size: 1309 bytes --]
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Daniel Robbins <drobbins@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/sys-apps/bash/bash-2.05a-r2.ebuild
S=${WORKDIR}/${P}
DESCRIPTION="The standard GNU Bourne again shell"
SRC_URI="ftp://ftp.gnu.org/gnu/bash/${P}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/bash/bash.html"
DEPEND=">=sys-libs/ncurses-5.2-r2
readline? ( >=sys-libs/readline-4.1-r2 )"
RDEPEND="virtual/glibc"
src_compile() {
local myconf
[ "`use readline`" ] && myconf="--with-installed-readline"
[ -z "`use nls`" ] && myconf="${myconf} --disable-nls"
./configure --prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info --host=${CHOST} --disable-profiling --with-curses --enable-static-link ${myconf} || die
emake || die
}
src_install() {
make prefix=${D}/usr mandir=${D}/usr/share/man infodir=${D}/usr/share/info install
dodir /bin
mv ${D}/usr/bin/bash ${D}/bin
dosym bash /bin/sh
if [ -z "`use build`" ]
then
doman doc/*.1
if [ -z "`use readline`" ]
then
doman doc/*.3
fi
dodoc README NEWS AUTHORS CHANGES COMPAT COPYING Y2K
dodoc doc/FAQ doc/INTRO
else
rm -rf ${D}/usr
fi
}
[-- Attachment #3: digest-bash-2.05a-r2 --]
[-- Type: text/plain, Size: 63 bytes --]
MD5 eeabc3f624861c4a8a687f7701db3d06 bash-2.05a.tar.gz 1814528
[-- Attachment #4: bash-completion-2.05a.ebuild --]
[-- Type: text/plain, Size: 2193 bytes --]
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Zach Forrest <diatribe@shaw.ca>
# /space/gentoo/cvsroot/gentoo-x86/app-admin/bash-completion/bash-completion-2.05a.ebuild
S=${WORKDIR}/${P}
DESCRIPTION="Some programmable completion functions for bash 2.05a."
SRC_URI="http://www.caliban.org/files/bash/bash_completion.gz"
HOMEPAGE="http://www.caliban.org/bash/index.shtml#completion"
DEPEND=">=sys-apps/bash-2.05a-r2"
src_unpack() {
echo "Nothing to unpack (despite what the next message says)."
}
src_install() {
echo "Installing bash_completion into ${D}/etc"
mkdir ${D}/etc
gzip -dc ${DISTDIR}/bash_completion.gz > ${D}/etc/bash_completion
}
pkg_postinst () {
echo
echo "*****************************************************************"
echo "* To enable the bash_completion package, a collection of shell *"
echo "* functions that take advantage of the programmable completion *"
echo "* feature of bash 2.05a and later, add the following code *"
echo "* to /etc/profile or /etc/bashrc. *"
echo "* *"
echo "* Alternatively, if you don't want it to be available to all *"
echo "* users, just source it from your ~/.bashrc *"
echo "*****************************************************************"
echo
echo 'if [ "${PS1}" ] && [ ${BASH_VERSION%.*} = "2.05a" ] \'
echo ' && [ -f /etc/bash_completion ]; then # interactive shell'
echo ' # Source completion code'
echo ' . /etc/bash_completion'
echo 'fi'
echo
echo "*****************************************************************"
echo "* This is by no means necessary, but if context sensitive *"
echo "* completion of cd, cvs, GNU make, ssh, chown, umount, insmod, *"
echo "* rmmod, man, find, chkconfig, route, iptables, sudo, and other *"
echo "* commands sounds useful, you might want to give it a try. *"
echo "*****************************************************************"
echo
}
[-- Attachment #5: digest-bash-completion-2.05a --]
[-- Type: text/plain, Size: 62 bytes --]
MD5 e0c166ed38bef641be6254ce7b8738b4 bash_completion.gz 12288
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion
2001-12-09 20:51 ` Chad Huneycutt
@ 2001-12-09 23:52 ` Zach Forrest
0 siblings, 0 replies; 5+ messages in thread
From: Zach Forrest @ 2001-12-09 23:52 UTC (permalink / raw
To: gentoo-dev
Ah, yes. Makes sense.
Thanks.
Chad Huneycutt wrote:
> Zach Forrest wrote:
>
>> 2) This may have something to do with the following condition:
>>
>> if [ -z "`use build`" ]
>
>
> This guard is generally used when making a simplified ebuild to be used
> with the "build image". Or the opposite, in this case. Only build the
> docs if this is not for the build image.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-12-09 23:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200112092010.ACU39946@thor.inter.net.il>
2001-12-09 20:59 ` [gentoo-dev] Re: [gentoo-ebuild] Bash 2.05a with bash_completion Tom von Schwerdtner
2001-12-09 22:03 ` Zach Forrest
2001-12-09 20:51 ` Chad Huneycutt
2001-12-09 23:52 ` Zach Forrest
2001-12-09 22:48 ` Zach Forrest
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox