Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > fc1b2134bfac8ec7e89dc9b7f48f68b4 > files > 7

bash-completion-20050721-1mdk.src.rpm

%define name	bash-completion
%define version 20050721
%define release 1mdk

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	Programmable completion for bash
Group:		Shells
License:	GPL
Source:		http://www.caliban.org/files/bash/%{name}-%{version}.tar.bz2
Patch1:		%{name}-20050121.device_ids.patch.bz2
Patch5:		%{name}-20050712.scp-remote.patch.bz2
Patch8:		%{name}-20050121.rpm-database.patch.bz2
Patch10:	%{name}-20050121.disable-user-completion.patch.bz2
Patch13:	%{name}-20050720.iconv.patch.bz2
URL:		http://www.caliban.org/bash/
BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}
Requires:	bash >= 2.05

%description
bash-completion is a collection of shell functions that take advantage of
the programmable completion feature of bash.

%prep
%setup -q -n bash_completion
%patch1
%patch5
%patch8
%patch10
%patch13
chmod 644 contrib/*
rm -f contrib/dsniff
rm -f contrib/freeciv
rm -f contrib/lilypond
rm -f contrib/povray
rm -f contrib/gkrellm
rm -f contrib/cksfv
rm -f contrib/sitecopy
rm -f contrib/mcrypt
rm -f contrib/gnatmake
rm -f contrib/unace
rm -f contrib/unrar
rm -f contrib/snownews
rm -f contrib/mailman
rm -f contrib/bittorrent

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%_sysconfdir/bash_completion.d
install -m 644 bash_completion %{buildroot}%_sysconfdir

mkdir -p %{buildroot}%_sysconfdir/profile.d/
cat <<'EOF' >> %{buildroot}%_sysconfdir/profile.d/bash-completion.sh
#!/bin/sh
# system-wide activation
if [ "$PS1" ]  && [ -n "$BASH" ]; then
    # source user config file if available,
    # otherwise system wide config file
    if [ -f $HOME/.bash_completion ]; then
	. $HOME/.bash_completion
    else 
	. %_sysconfdir/sysconfig/bash-completion
    fi

    if [ -n "$ENABLE_BASH_COMPLETION" ]; then
	. %_sysconfdir/bash_completion
    fi
fi
EOF
chmod +x %{buildroot}%_sysconfdir/profile.d/bash-completion.sh

mkdir -p %{buildroot}%_sysconfdir/sysconfig
cat <<'EOF' >> %{buildroot}%_sysconfdir/sysconfig/bash-completion
ENABLE_BASH_COMPLETION=
COMP_CVS_REMOTE=
COMP_SCP_REMOTE=
COMP_CONFIGURE_HINTS=
COMP_TAR_INTERNAL_PATHS=
COMP_IWCONFIG_SCAN=
COMP_RPM_DATABASE=
EOF

mkdir -p %{buildroot}%_sysconfdir/skel
cat <<'EOF' >> %{buildroot}%_sysconfdir/skel/.bash_completion
ENABLE_BASH_COMPLETION=1
COMP_CVS_REMOTE=
COMP_SCP_REMOTE=
COMP_CONFIGURE_HINTS=
COMP_TAR_INTERNAL_PATHS=
COMP_IWCONFIG_SCAN=
COMP_RPM_DATABASE=
EOF

cat > README.mdk <<EOF
Programmable bash completion can be enabled in two different ways. For
system-wide activation, define ENABLE_BASH_COMPLETION in
/etc/sysconfig/bash-completion. For user activation, define
ENABLE_BASH_COMPLETION in ~/.bash_completion.

In both cases, a certain number of environment variables can be used to
configure programmable bash completion behaviour. All slow completions,
notably, are disabled by default.
EOF

cat > README.upgrade.urpmi <<EOF
Starting from 20050121-5mdk, bash completion activation was modified and is now
more consistant with other user environment activation systems. New users should
automatically get a working configuration, but existing users will have to
remove the explicit sourcing of /etc/bash_completion from their ~/.bashrc, and
copy /etc/skel/.bash_completion file in their home directory manually.
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README Changelog contrib/* README.mdk README.upgrade.urpmi
%{_sysconfdir}/bash_completion
%{_sysconfdir}/bash_completion.d
%{_sysconfdir}/profile.d/bash-completion.sh
%config(noreplace) %{_sysconfdir}/sysconfig/bash-completion
%config(noreplace) %{_sysconfdir}/skel/.bash_completion

%changelog
* Fri Jul 22 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050721-1mdk 
- new version
- dropped patch 0, 6, 7, 9, 11 and 12 merged upstream

* Thu Jul 21 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050720-2mdk 
- iconv patch

* Wed Jul 20 2005 Götz Waschk <waschk@mandriva.org> 20050720-1mdk
- New release 20050720

* Wed Jul 13 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050712-1mdk 
- new release
- dropped patches 2, 3 and 4 merged upstream
- rediff patch 5, 7

* Sat Jun 25 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050121-8mdk 
- mc completion patch

* Thu Jun 23 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050121-7mdk 
- fix ssh aliases completion

* Mon Jun 13 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050121-6mdk 
- user config file is ~/.bash_completion, not ~/.bash-completion

* Mon Jun 13 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050121-5mdk 
- rework activation procedure again
- fix lilo labels completion

* Wed May 18 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050121-4mdk 
- make rpm slow database completion optional
- fix mplayer options completion

* Sun May 08 2005 Guillaume Rousse <guillomovitch@mandriva.org> 20050121-3mdk 
- add a bunch of patches waiting for upstream merge (id, getent, iwconfig)
- disable all slow completion by default, including remote scp completion
- rework activation procedure
- drop README.urpmi in favor of README.mdk
- spec cleanup

* Fri Apr 01 2005 Guillaume Rousse <guillomovitch@mandrake.org> 20050121-2mdk 
- fix tcpdump & dhclient completions
- add shellbang in profile script

* Mon Jan 24 2005 Guillaume Rousse <guillomovitch@mandrake.org> 20050121-1mdk
- New release 20050121

* Thu Jan 20 2005 Goetz Waschk <waschk@linux-mandrake.com> 20050120-1mdk
- New release 20050120

* Thu Jan 13 2005 Guillaume Rousse <guillomovitch@mandrake.org> 20050112-1mdk 
- New release
- don't tag scripts as config

* Tue Jan 04 2005 Guillaume Rousse <guillomovitch@mandrake.org> 20050103-1mdk
- New release 20050103

* Thu Oct 28 2004 Guillaume Rousse <guillomovitch@mandrake.org> 20041017-1mdk 
- New release 20041017
- %_sysconfdir/profile.d config file is back, but disabled
- README.urpmi

* Sun Jul 11 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 20040711-1mdk
- New release 20040711

* Fri Jul 09 2004 Guillaume Rousse <guillomovitch@mandrake.org> 20040704-2mdk 
- no more config file in %_sysconfdir/profile.d, existing users have to 
  explicitely source %_sysconfdir/bash_completion from their .bashrc now

* Sun Jul  4 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 20040704-1mdk
- New release 20040704

* Wed May 26 2004 Götz Waschk <waschk@linux-mandrake.com> 20040526-1mdk
- fix URL
- New release 20040526

* Wed Mar 31 2004 Guillaume Rousse <guillomovitch@mandrake.org> 20040331-1mdk
- new version
- dropped mkisofs patch (merged upstream)

* Mon Mar 01 2004 Guillaume Rousse <guillomovitch@mandrake.org> 20040101-2mdk
- Oliver Lemke <olemke@linux.net>: fixed mkisofs completion (bug #8550)

* Fri Jan  2 2004 Götz Waschk <waschk@linux-mandrake.com> 20040101-1mdk
- new version

* Mon Dec 29 2003 Guillaume Rousse <guillomovitch@mandrake.org> 20031225-1mdk
- new version
- move contrib completion to relevant packages

* Mon Dec 15 2003 Guillaume Rousse <guillomovitch@mandrake.org> 20031215-1mdk
- new version

* Tue Nov 25 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 20031125-1mdk
- new version

* Wed Nov 12 2003 Götz Waschk <waschk@linux-mandrake.com> 20031112-1mdk
- new version

* Tue Nov 04 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 20031022-1mdk
- new version
- dropped patches merged upstream
- transfered urpmi patch in urpmi package

* Wed Sep 10 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 20030821-3mdk
- urpmi completion patch
- services completion patch
- mpg321 patch
- fixed non-bash shell startup

* Mon Aug 25 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 20030821-2mdk
- .xpi completion for unzip patch

* Thu Aug 21 2003 Götz Waschk <waschk@linux-mandrake.com> 20030821-1mdk
- new version

* Tue Aug 12 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 20030811-1mdk
- 20030811

* Fri Aug 08 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 20030803-2mdk
- rebuild

* Mon Aug  4 2003 Götz Waschk <waschk@linux-mandrake.com> 20030803-1mdk
- new version

* Mon Jul 21 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 20030721-2mdk
- no more /etc/bashrc modification in %%post
- rm -rf %{buildroot} in %%install

* Mon Jul 21 2003 Götz Waschk <waschk@linux-mandrake.com> 20030721-1mdk
- new version

* Sun Jul 13 2003 Götz Waschk <waschk@linux-mandrake.com> 20030713-1mdk
- new version

* Mon Jun 30 2003 Götz Waschk <waschk@linux-mandrake.com> 20030630-1mdk
- new version

* Sun Jun  8 2003 Götz Waschk <waschk@linux-mandrake.com> 20030607-1mdk
- new version

* Mon May  5 2003 Götz Waschk <waschk@linux-mandrake.com> 20030505-1mdk
- new version

* Thu May 01 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 20030501-1mdk
- 20030501

* Sun Apr 20 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 20030419-1mdk
- 20030419

* Mon Apr 14 2003 Götz Waschk <waschk@linux-mandrake.com> 20030414-1mdk
- new version

* Thu Mar 27 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 20030327-1mdk
- 20030327

* Sun Feb  9 2003 Götz Waschk <waschk@linux-mandrake.com> 20030209-1mdk
- new version

* Sun Feb 02 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 20030201-1mdk
- 20030201

* Mon Jan 27 2003 Götz Waschk <waschk@linux-mandrake.com> 20030126-1mdk
- fix permissions of the contrib files
- new version

* Sat Jan 18 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 20030118-1mdk
- 20030118

* Mon Jan 13 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 20030113-1mdk
- 20030113

* Wed Jan  1 2003 Götz Waschk <waschk@linux-mandrake.com> 20021231-1mdk
- new version

* Tue Dec 24 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20021223-1mdk
- new version

* Tue Dec 17 2002 Götz Waschk <waschk@linux-mandrake.com> 20021217-1mdk
- new version

* Fri Dec 13 2002 Götz Waschk <waschk@linux-mandrake.com> 20021213-1mdk
- new version

* Fri Dec  6 2002 Götz Waschk <waschk@linux-mandrake.com> 20021205-1mdk
- new version

* Sat Oct 26 2002 Götz Waschk <waschk@linux-mandrake.com> 20021026-1mdk
- new version

* Mon Oct 21 2002 Götz Waschk <waschk@linux-mandrake.com> 20021021-1mdk
- new version

* Thu Oct 17 2002 Götz Waschk <waschk@linux-mandrake.com> 20021017-1mdk
- new version

* Mon Oct 14 2002 Götz Waschk <waschk@linux-mandrake.com> 20021013-1mdk
- new version

* Sat Oct 05 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20021005-1mdk
- 20021005

* Tue Oct  1 2002 Götz Waschk <waschk@linux-mandrake.com> 20021001-1mdk
- new version

* Sun Sep 29 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020928-1mdk
- 20020928

* Mon Sep 09 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020909-1mdk
- 20020909

* Tue Aug 20 2002 Götz Waschk <waschk@linux-mandrake.com> 20020819-1mdk
- new version

* Tue Aug 13 2002 Götz Waschk <waschk@linux-mandrake.com> 20020812-1mdk
- new version

* Sat Aug 03 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020803-1mdk
- 20020803

* Sat Jul 27 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020727-1mdk
- 20020727

* Tue Jul 23 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020723-1mdk
- 20020723

* Tue Jul 16 2002 Götz Waschk <waschk@linux-mandrake.com> 20020716-1mdk
- new version

* Thu Jul 11 2002 Götz Waschk <waschk@linux-mandrake.com> 20020711-1mdk
- new version

* Thu Jul  4 2002 Götz Waschk <waschk@linux-mandrake.com> 20020704-1mdk
- new version

* Wed Jun 26 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020626-1mdk
- 20020626

* Tue Jun 25 2002 Götz Waschk <waschk@linux-mandrake.com> 20020624-1mdk
- new version

* Fri Jun 21 2002 Götz Waschk <waschk@linux-mandrake.com> 20020621-1mdk
- new version

* Wed Jun 19 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 20020619-1mdk
- new release

* Tue Jun 18 2002 Götz Waschk <waschk@linux-mandrake.com> 20020616-1mdk
- new version

* Wed Jun 12 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 20020611-2mdk
- after discussion with frederic lepied, move most of old post-install script
  to %_sysconfdir/profile.d/bash-completion.sh, thus :
  - prevent altering system files without need
  - reduce time spent in post install work
- add a note (that we'll remove in mdk9.0) to %%post :
	 # for now, we keep the old %postun as %post
	 # to let cooker update (well, it's not really needed
	 # but prevent initializing twice the completion system
- remove useless test for bash version since we've already enforce
  package dependancy on recent enough bash, thus simplify our script
- add test to ensure we run bash-completion only under bash (else zsh
  behave mad :-( )
- ensure all tests are both zsh and bash compatible

* Tue Jun 11 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 20020611-1mdk
- new snapshot

* Mon Jun 10 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 20020609-2mdk
- typo fix

* Mon Jun 10 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 20020609-1mdk
- new release
- PreReq: sed for %%post
- never overwrite config files

* Wed Jun  5 2002 Götz Waschk <waschk@linux-mandrake.com> 20020605-1mdk
- new version

* Mon Jun 03 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020601-1mdk
- 20020601

* Wed May 29 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020528-1mdk
- 20020528

* Tue May 21 2002 Götz Waschk <waschk@linux-mandrake.com> 20020521-1mdk
- new version
- quiet %%setup

* Mon May 20 2002 Götz Waschk <waschk@linux-mandrake.com> 20020519-1mdk
- 20020519

* Fri May 17 2002 Götz Waschk <waschk@linux-mandrake.com> 20020516-1mdk
- 20020516

* Tue May 14 2002 Götz Waschk <waschk@linux-mandrake.com> 20020514-1mdk
- 20020514

* Mon May 13 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020511-1mdk
- 20020511

* Wed May 08 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020507-1mdk
- 20020507

* Mon May 06 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020504-1mdk
- 20020504

* Thu May 02 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020430-1mdk
- 20020430

* Mon Apr 29 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020427-1mdk
- 20020427
- patches merged upstream

* Mon Apr 22 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020422-1mdk
- 20020422
- fixed bash version (Geoffrey Lee <snailtalk@linux-mandrake.com>)

* Mon Apr 22 2002 Guillaume Rousse <g.rousse@linux-mandrake.com> 20020418-3mdk
- now an official mdk package
- urpmi completion patch for media name with space inside (should work
  this time)
- update-alternative completion patch
- changed group to please rpmlint

* Fri Apr 19 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020418-2plf
- fixed changelog

* Fri Apr 19 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020418-1plf
- 20020418
- requires bash >= 2.05 only
- fixed summary and description

* Tue Apr 16 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020413-1plf
- 20020413

* Mon Apr 08 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020408-1plf
- 20020408

* Mon Apr 08 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020406-1plf
- 20020406

* Fri Apr 05 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020404-1plf
- 20020404

* Wed Apr 03 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020402-1plf
- 20020402 

* Mon Apr 01 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020331-1plf
- 20020331 
- patch merged upstream

* Fri Mar 29 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020328-1plf
- 20020328

* Thu Mar 28 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020326-2plf
- urpmi completion patch for media name with space inside

* Tue Mar 26 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020326-1plf
- 20020326 

* Mon Mar 25 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020324-1plf
- 20020324

* Fri Mar 15 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020314-1plf
- 20020314

* Wed Mar 13 2002 Guillaume Rousse <rousse@ccr.jussieu.fr> 20020311-1plf
- first plf release

* Mon Mar 11 2002 Ian Macdonald <ian@caliban.org>
- add Debian Linux reportbug(1) and querybts(1) completion
- add dpkg-deb completion and add dpkg-deb options to dpkg completion
- source files in /etc/bash_completion.d prior to sourcing ~/.bash_completion
- fixed _cd() bug where seemingly duplicate completions were returned
- in _dpkg(), certain options were not returning directory completions
- fixed the ignoring of cuurent parameter in _dpkg()
- add _urpmi.media(), _urpmi(), _urpmi.update(), _urpmi.addmedia() and
  _urpmi.removemedia() for Mandrake urpmi completion
- add initial option support to _tar()
- add java completion
- add jar completion
- ant completion replaced by new, more comprehensive routine
- in _rpm(), handle query of uninstalled packages when options are not
  concatenated, i.e. rpm -qp worked, but rpm -q -p did not
- create %{_sysconfdir}/bash_completion.d directory for scripts supplied by
  other packages
- update README

* Wed Mar  6 2002 Ian Macdonald <ian@caliban.org>
- in _man(), Debian does not support man --path, so try setting path using
  manpath and, if that fails, use man --path instead
- _export() and _configure() default to default bash completion
- fix infinite recursion if main completion file installed as
- ~/.bash_completion, since we source this file at the end

* Mon Mar  4 2002 Ian Macdonald <ian@caliban.org>
- cvs completion greatly improved and extended
- _rpm() performs path completion for --whatprovides if parameter contains a /
- _man() now also works on Darwin systems (MacOS X)
- _longopt() now makes vague attempt at path completion after the '=' in
  --long-opt= style options
- _function() now also performs typeset/declare -f completion
- fixed lots of potential sed/awk interpolation problems
- _cd() was not correctly completing on subdirs of $CDPATH
- fixed minor typo in _longopt()
- fixed eval error in _expand() when parameter ends with a \
- fixed quote problem in _man()
- added contrib directory with completions for lesser known programs
- expanded README

* Wed Feb 27 2002 Ian Macdonald <ian@caliban.org>
- dpkg completion added for Debian Linux
- cardctl completion added
- sudo now calls _root_command() to set a more likely root $PATH
- added long option completion to make completion
- minor bug fixes to make, chown and chgrp completion
- _command() now calls _filedir() when subcompletion returns nothing
- psql completion now performs default bash completion if nothing else returned
- innumerable potential opportunities for compgen errors removed
- large scale code clean-up
- documentation dir was accidentally mode 0644, not 0755

* Mon Feb 25 2002 Ian Macdonald <ian@caliban.org>
- fixed compgen error in some long options of _rpm()
- in _psql(), try to get list of valid users from Postgres before resorting to
  system user list
- mkdir and rmdir now complete only on directories and long options
- _cd() was ignoring $CDPATH
- prevent compgen error in _tar() when first parameter starts with hyphen
- fix bug in _known_hosts() where defaulting to standard hostname completion
  would yield a compgen error
- bzip source tar file

* Wed Feb 20 2002 Ian Macdonald <ian@caliban.org>
- new GNU long option completion for large number of commands
  (a2ps, autoconf, automake, bc, gprof, ld, nm, objcopy, objdump, readelf,
  strip, bison, cpio, diff, patch, enscript, cp, df, dir, du, ln, ls, mkfifo,
  mknod, mv, rm, touch, vdir, xargs, awk, gperf, grep, gpg, grub, indent, less,
  m4, sed, shar, date, env, seq, su, tee, uname, who, texindex, cat, csplit,
  cut, expand, fmt, fold, head, md5sum, nl, od, paste, pr, ptx, sha1sum, sort,
  split, tac, tail, tr, unexpand, uniq, wc, units, rsync and irb)
- add gcc completion, plus back-ends (g++, c++, g77, gcj and gpc)
- man completion failed on Sorceror Linux, so use man --path instead of manpath
- function completion failed for function names that start with a hyphen
- killall now completes on signals only if the leading hyphen is supplied
- improved kill completion
- ee, xv, qiv and display also complete on .xpm files
- check for readable $modpath in _insmod()
- check for Linux before installing route and killall completion
- check for commands before installing make and cvs completion
- remove redundant _redir_op() and _redir_test()
- code clean-up in various places

* Fri Feb 15 2002 Ian Macdonald <ian@caliban.org>
- add basic psql completion
- use manpath(1) instead of /etc/man.config to determine man path, so that we
  now honour $MANPATH
- multiple minor rpm completion enhancements
- default to directory completion in _rpm() in more cases
- passwd was actually completing on groups, not users
- fix bug that caused spurious ':' to be returned in all manual sections
- rsh, rlogin and ftp now also use _known_hosts()
- mplayer also completes on .wmv and .mov files files

* Wed Feb 13 2002 Ian Macdonald <ian@caliban.org>
- fix bug in one-liners
- fix _tcpdump() out of memory error

* Tue Feb 12 2002 Ian Macdonald <ian@caliban.org>
- add beginnings of gdb completion
- add bash export completion
- add bash alias and function completion
- add ncftp bookmark completion
- add qiv and display to list of programs that complete on image files
- _scp() now suffixes a ':' on hostnames
- xfig completes on .fig files
- in _apt-cache(), return package list for --show, --showpkg, --depends
  and --dotty
- type now simply completes on commands (complete -c) rather than using
  _command()
- clean up _man() a little
- updated README

* Sat Feb  9 2002 Ian Macdonald <ian@caliban.org>
- handle bzipped man pages in _man() and remove some code duplication
- more file types for ee and xv
- fixed minor quoting and expansion bug in _filedir() and _filedir_xspec()
- include README and Changelog in real tar.gz source archive

* Wed Feb  6 2002 Ian Macdonald <ian@caliban.org>
- make -name, -lname, -iname & -ilname complete on files in _find() and
  change default completion from -o default to -o filenames
- make xdvi also complete on .Z, .gz and .bz2 files
- correct minor bug in one-liners that caused completions that should have
  returned just *.(foo|bar) to also return *.foobar
- add a bunch of one-liners from patch by Matthias Klose
- add --pkgid, --hdrid, --fileid & --tid query options to _rpm() for rpm 4.0.4
- xmms, gqmpeg and freeamp also complete on .pls files
- make unzip also complete on .pk3 (Quake map) files
- make scp work with file names with embedded spaces
- get rpm's package list from /var/log/rpmpkgs only if it is newer than
  /var/lib/rpm/Packages
- clean up /etc/bashrc when package is removed in %postun
- depend on sed for %postun
- improve bash version test in /etc/bashrc (parses cleanly on bash 1.x and 2.x)

* Mon Feb  4 2002 Ian Macdonald <ian@caliban.org>
- _find() now performs directory completion on first parameter if it doesn't
  start with a dash
- unzip now also completes on .exe files
- fixed quoting bug in _zip()
- minor _rpm() touch-ups
- completion added for screen(1) and openssl(1)

* Tue Jan 29 2002 Ian Macdonald <ian@caliban.org>
- perform tilde expansion at more points in _rpm()
- aviplay, not avifile one-liner
- define $BASH_COMPLETION to hold location of completion script
- make _ifupdown() detect a Debian Linux system and act accordingly
- --clean can be used stand-alone in _rpm()

* Wed Jan 23 2002 Ian Macdonald <ian@caliban.org>
- fixed missing quotes bug (duh!)
- 'sudo x <Tab>' now defaults to filename completion if nothing else returned
- rpm -q[a-z]p now works just like rpm -qp[a-z]
- turn off command tracing when DEBUG is unset
- unzip also completes on .jar files
- ggv completes on PostScript files
- remove MP3 extensions from mplayer's compspec
- redirect _command()'s stderr to /dev/null when no compspec for command
- fixed bug where 'sudo x $1 $2 $n' passed rest of line to x's completion
  routine as a single parameter, rather than a series of n tokens
- _rpm() handles --rmspec
- new function _zip() so that gzip and bzip2 complete on .gz and .bz2 files
  when passed the -d flag
- new function _expand() for tilde expansion in pathnames (now called by
  multiple functions)
- new function filedir() is used by cat, less, more, ln and strip, so that
  _expand() can be called for these commands

* Mon Jan 21 2002 Ian Macdonald <ian@caliban.org>
- fixed bug that caused ssh completion to go awry when hostname contained @
- rewrote command completion for commands like sudo, which should first
  complete on a command, then call that command's own completion function
- fixed _man() completion so that file completion on relative paths works

* Tue Jan 15 2002 Ian Macdonald <ian@caliban.org>
- added _mysqladmin() completion

* Wed Jan  9 2002 Ian Macdonald <ian@caliban.org>
- added _chgrp() completion
- added _ifupdown() for Red Hat Linux if{up,down} completion
- improve _iptables() with some chain name completion
- _cd() was no longer completing relative to $CDPATH

* Sat Jan  5 2002 Ian Macdonald <ian@caliban.org>
- fixed _cd() so that if $CDPATH is set and no completions are returned
  relative to its paths, directory completion relative to $PWD is performed
- fixed _cd() so that it completes on directories with an embedded space
- gv also completes on encapsulated PostScript files and PDF files
- jadetex and pdfjadetex added to commands that complete on tex files
- improved _tar() completion to handle .tgz and .tar files
- tar c*f performs file completion
- added 'conflicts' and 'obsoletes' query completions to _rpm()
- added 'repackage' completion option to rpm -[ei]
- fixed _file_and_dir() so that it completes on dirs with an embedded space

* Wed Jan  2 2002 Ian Macdonald <ian@caliban.org>
- check for location of showmount in _mount()
- condense awk|grep combo in _configure() to a single sed command
- change embedded tabs to $'\t' syntax
- be more intelligent about parsing for exclusion (-X) compspecs when
  binding commands to _file_and_dir()

* Thu Dec 20 2001 Ian Macdonald <ian@caliban.org>
- added meta-completion function _file_and_dir for compspecs requiring
  the -X flag. This allows us to exclude files without excluding directories.

* Mon Dec 17 2001 Ian Macdonald <ian@caliban.org>
- add ant and nslookup completion
- make xv and ee complete on more file types

* Mon Dec 10 2001 Ian Macdonald <ian@caliban.org>
- use type instead of which to determine what's on system
- require >= 2.05-12 to allow installation by people using patched 2.05

* Wed Dec  5 2001 Ian Macdonald <ian@caliban.org>
- removed misleading comment on _man completion
- use -g, not -u for group completion (duh!)
- avoid unnecessary use of $COMPREPLY_SAVE in _ssh/_scp
- use '-' as prefix (-P) to kill, not '%', and put it *before* command
- default to filename completion on _scp
- source ~/.bash_completion if it exists

* Wed Nov 28 2001 Ian Macdonald <ian@caliban.org>
- simplify code for group completion, since bash 2.05a has this built in
- now Requires bash 2.05a

* Mon Nov 26 2001 Ian Macdonald <ian@caliban.org>
- make _known_hosts escape meta-characters in path before handing off to awk
- added missing ` to _service

* Tue Nov 20 2001 Ian Macdonald <ian@caliban.org>
- default to _dirnames on _find
- fixed bug in _known_hosts that caused keys in known_hosts2 files to be
  returned as completions
- made _ssh a little more intelligent
- added _scp
- made _cd expand ~ in directory specs
- declared $i as a local variable in many functions

* Sun Nov  4 2001 Ian Macdonald <ian@caliban.org>
- rpm completion now uses /var/log/rpmpkgs if available, which makes some
  completions much more responsive on systems with large numbers of packages
- man completion now checks section 'l' of the manual

* Tue Oct 23 2001 Ian Macdonald <ian@caliban.org>
- add a Requires(post) for grep
- use -q with grep in %post
- use License instead of Copyright
- use macro in %post, rather than a direct reference to the file

* Fri Sep 21 2001 Ian Macdonald <ian@caliban.org>
- fix to _cd that prevented completions being returned when $CDPATH was
  not set and user was attempting to complete on a non-absolute path

* Wed Aug 22 2001 Ian Macdonald <ian@caliban.org>
- removed previous fix to _rpm, since it broke more than it fixed

* Thu Aug 16 2001 Ian Macdonald <ian@caliban.org>
- better Perforce completion from Frank Cusack <frank@google.com>
- _command meta-command completion from Frank Cusack <frank@google.com>
- bug fix to _rpm

* Thu Jul 12 2001 Ian Macdonald <ian@caliban.org>
- minor changes to p4 completion

* Tue Jul 10 2001 Ian Macdonald <ian@caliban.org>
- minor mod to cd completion to make absolute path completion work

* Mon Jul  9 2001 Ian Macdonald <ian@caliban.org>
- fixed bug in have() function that returned false positives
- made some of the default completions more sensible
- added basic Perforce completion

* Tue Jun 19 2001 Ian Macdonald <ian@caliban.org>
- added rudimentary tar, tcpdump and iptables completion functions
- added checking, so that functions are only defined on platforms that
  actually have the commands that will use them

* Mon May 21 2001 Ian Macdonald <ian@caliban.org>
- modified functions for 'complete -o', new in bash 2.05
- require bash instead of bash2

* Wed Jan 31 2001 Ian Macdonald <ian@caliban.org>
- man page completion performs filename completion if no /etc/man.config
- insmod completion wasn't completing module parameters properly
- modprobe -r now completes a la lsmod
- insmod completion now performs filename completion if module name contains /

* Wed Jan 10 2001 Ian Macdonald <ian@caliban.org>
- added Red Hat service completion

* Wed Dec 20 2000 Ian Macdonald <ian@caliban.org>
- added --rmsource as stand-alone option to RPM completion

* Tue Dec 19 2000 Ian Macdonald <ian@caliban.org>
- RPM file glob completion enhanced; bug fix to killall completion

* Mon Nov 20 2000 Ian Macdonald <ian@caliban.org>
- RPM completion updated for rpm 4.x, numerous bug fixes and extra options

* Sun Oct 29 2000 Ian Macdonald <ian@caliban.org>
- fixed bug in rpm completion that made -e, etc. not find all RPMs

* Thu Oct 19 2000 Ian Macdonald <ian@caliban.org>
- reverted cd, mkdir & pushd to standard -d directory completion

* Mon Oct  9 2000 Ian Macdonald <ian@caliban.org>
- minor improvements to _man & _find
- improved FreeS/WAN completion
- added Debian apt-get & apt-cache completion
- added more intelligent directory completion in new _directory function

* Mon Sep 25 2000 Ian Macdonald <ian@caliban.org>
- version set to 20000925
- insmod completion improved with parameter completion
- ssh completion broken up into _known_hosts function for use by other commands
- Makefile completion added

* Mon Sep 11 2000 Ian Macdonald <ian@caliban.org>
- update to 0.06
- fixed bug in man completion that caused pages with a dot (e.g. lilo.conf)
  not to be found
- ssh completion enhanced with command completion after host
- fixed bug in ssh completion that caused spurious completions when completing
  on an IP address
- added route(8) completion

* Tue Aug 29 2000 Ian Macdonald <ian@caliban.org>
- update to 0.05
- fixed bug in killall completion
- added cipher completion to -c option of ssh

* Mon Aug 28 2000 Ian Macdonald <ian@caliban.org>
- update to 0.04
- added ssh completion
- tidied the code in some other functions

* Fri Aug 11 2000 Ian Macdonald <ian@caliban.org>
- update to 0.03
- added cvs, rpm, chsh & chkconfig completion

* Wed Aug  2 2000 Ian Macdonald <ian@caliban.org>
- update to 0.02

* Sun Jul 29 2000 Ian Macdonald <ian@caliban.org>
- 0.01 packaged as RPM