Update of /cvsroot/fink/dists/10.4-transitional/unstable/main/finkinfo/shells
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28942/shells
Added Files:
ash.info ash.patch bash-completion.info bash-completion.patch
bash-doc.info bash.info bash.patch ksh.info mirbsdksh.info
scsh-install-lib.info scsh.info tcsh.info tcsh.patch
zsh-templates.info zsh.info
Log Message:
move from 10.3
--- NEW FILE: bash.patch ---
diff -u -Naur bash-3.0/Makefile.in bash-3.0.fink/Makefile.in
--- bash-3.0/Makefile.in Wed Mar 17 08:34:39 2004
+++ bash-3.0.fink/Makefile.in Fri Nov 19 14:28:02 2004
@@ -376,7 +376,7 @@
$(BASHINCDIR)/shtty.h $(BASHINCDIR)/typemax.h \
$(BASHINCDIR)/ocache.h
-LIBRARIES = $(SHLIB_LIB) $(READLINE_LIB) $(HISTORY_LIB) $(TERMCAP_LIB)
$(GLOB_LIB) \
+LIBRARIES = $(SHLIB_LIB) ./lib/readline/libreadline.a
./lib/readline/libhistory.a $(TERMCAP_LIB) $(GLOB_LIB) \
$(TILDE_LIB) $(MALLOC_LIB) $(INTL_LIB) $(LOCAL_LIBS)
LIBDEP = $(SHLIB_DEP) $(INTL_DEP) $(READLINE_DEP) $(HISTORY_DEP)
$(TERMCAP_DEP) $(GLOB_DEP) \
diff -u -Naur bash-3.0/README.Fink bash-3.0.fink/README.Fink
--- bash-3.0/README.Fink Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/README.Fink Fri Nov 19 14:57:47 2004
@@ -0,0 +1,32 @@
+This installation of bash has been set up to use an init system similar
+to the tcsh installed by OS X.
+
+In order to use this configuration:
+
+ echo "source ~/.bashrc" > ~/.bash_profile
+ echo "source @PREFIX@/share/init/bash/rc" > ~/.bashrc
+ echo "source @PREFIX@/bin/init.sh" >> ~/.bashrc
+
+In order to customize this setup:
+
+ mkdir ~/Library/init/bash
+
+and create the following files there as necessary:
+
+ aliases.mine - shell aliases
+ completions.mine - completions
+ environment.mine - environment
+ rc.mine - run commands
+ path - command search path
+
+See the corresponding file in @PREFIX@/share/init/bash for more
+information about the role of each file. You can easily extend or
+override the configuration provided by the default file. For example,
+you can add more aliases by adding the appropriate commands in
+aliases.mine.
+
+The init files were originally written by Wilfredo Sanchez, but they contained
+a few errors which I've taken the liberty of correcting.
+
+-Christian Swinehart <[EMAIL PROTECTED]>
+ 16 Jan 2002
diff -u -Naur bash-3.0/doc/Makefile.in bash-3.0.fink/doc/Makefile.in
--- bash-3.0/doc/Makefile.in Tue Jul 27 08:57:48 2004
+++ bash-3.0.fink/doc/Makefile.in Fri Nov 19 15:17:46 2004
@@ -228,7 +228,7 @@
-$(INSTALL_DATA) $(srcdir)/bash.info $(DESTDIR)$(infodir)/bash.info
# run install-info if it is present to update the info directory
if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
- install-info --dir-file=$(DESTDIR)$(infodir)/dir
$(DESTDIR)$(infodir)/bash.info; \
+ echo "Not installing info now, will wait until package is
installed." \
else true; fi
# if htmldir is set, install the html files into that directory
-if test -n "${htmldir}" ; then \
diff -u -Naur bash-3.0/doc/bash.1 bash-3.0.fink/doc/bash.1
--- bash-3.0/doc/bash.1 Mon Jul 12 11:27:08 2004
+++ bash-3.0.fink/doc/bash.1 Fri Nov 19 14:57:47 2004
@@ -197,7 +197,7 @@
.TP
.B \-\-noprofile
Do not read either the system-wide startup file
-.FN /etc/profile
+.FN @PREFIX@/etc/profile
or any of the personal initialization files
.IR ~/.bash_profile ,
.IR ~/.bash_login ,
@@ -303,7 +303,7 @@
.B bash
is invoked as an interactive login shell, or as a non-interactive shell
with the \fB\-\-login\fP option, it first reads and
-executes commands from the file \fI/etc/profile\fP, if that
+executes commands from the file [EMAIL PROTECTED]@/etc/profile\fP, if that
file exists.
After reading that file, it looks for \fI~/.bash_profile\fP,
\fI~/.bash_login\fP, and \fI~/.profile\fP, in that order, and reads
@@ -359,7 +359,7 @@
When invoked as an interactive login shell, or a non-interactive
shell with the \fB\-\-login\fP option, it first attempts to
read and execute commands from
-.I /etc/profile
+.I @PREFIX@/etc/profile
and
.IR ~/.profile ,
in that order.
@@ -8636,10 +8636,10 @@
.SH FILES
.PD 0
.TP
-.FN /bin/bash
+.FN @PREFIX@/bin/bash
The \fBbash\fP executable
.TP
-.FN /etc/profile
+.FN @PREFIX@/etc/profile
The systemwide initialization file, executed for login shells
.TP
.FN ~/.bash_profile
diff -u -Naur bash-3.0/doc/bashref.texi bash-3.0.fink/doc/bashref.texi
--- bash-3.0/doc/bashref.texi Sat Jun 26 14:26:07 2004
+++ bash-3.0.fink/doc/bashref.texi Fri Nov 19 14:57:47 2004
@@ -4806,7 +4806,7 @@
to read command lines when the shell is interactive.
@item --noprofile
-Don't load the system-wide startup file @file{/etc/profile}
+Don't load the system-wide startup file @[EMAIL PROTECTED]@/etc/profile}
or any of the personal initialization files
@file{~/.bash_profile}, @file{~/.bash_login}, or @file{~/.profile}
when Bash is invoked as a login shell.
@@ -4931,7 +4931,7 @@
When Bash is invoked as an interactive login shell, or as a
non-interactive shell with the @option{--login} option, it first reads and
-executes commands from the file @file{/etc/profile}, if that file exists.
+executes commands from the file @[EMAIL PROTECTED]@/etc/profile}, if that file
exists.
After reading that file, it looks for @file{~/.bash_profile},
@file{~/.bash_login}, and @file{~/.profile}, in that order, and reads
and executes commands from the first one that exists and is readable.
@@ -4982,7 +4982,7 @@
When invoked as an interactive login shell, or as a non-interactive
shell with the @option{--login} option, it first attempts to read
-and execute commands from @file{/etc/profile} and @file{~/.profile}, in
+and execute commands from @[EMAIL PROTECTED]@/etc/profile} and
@file{~/.profile}, in
that order.
The @option{--noprofile} option may be used to inhibit this behavior.
When invoked as an interactive shell with the name @code{sh}, Bash
diff -u -Naur bash-3.0/doc/rbash.1 bash-3.0.fink/doc/rbash.1
--- bash-3.0/doc/rbash.1 Mon May 24 10:19:39 2004
+++ bash-3.0.fink/doc/rbash.1 Fri Nov 19 14:57:47 2004
@@ -3,6 +3,6 @@
rbash \- restricted bash, see \fBbash\fR(1)
.SH RESTRICTED SHELL
.nr zY 1
-.so bash.1
+.so man1/bash.1
.SH SEE ALSO
bash(1)
diff -u -Naur bash-3.0/init/README bash-3.0.fink/init/README
--- bash-3.0/init/README Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/init/README Fri Nov 19 14:57:47 2004
@@ -0,0 +1,28 @@
+This directory contains some useful bash files.
+
+In order to use this configuration:
+
+ echo "source ~/.bashrc" > ~/.bash_profile
+ echo "source @PREFIX@/share/init/bash/rc" > ~/.bashrc
+ echo "source @PREFIX@/bin/init.sh" >> ~/.bashrc
+
+In order to customize this setup:
+
+ mkdir ~/Library/init/bash
+
+and create the following files there as necessary:
+
+ aliases.mine - shell aliases
+ completions.mine - completions
+ environment.mine - environment
+ rc.mine - run commands
+ path - command search path
+
+See the corresponding file in @PREFIX@/share/init/bash for more
+information about the role of each file. You can easily extend or
+override the configuration provided by the default file. For example,
+you can add more aliases by adding the appropriate commands in
+aliases.mine.
+
+ -christian
+ [EMAIL PROTECTED]
diff -u -Naur bash-3.0/init/aliases bash-3.0.fink/init/aliases
--- bash-3.0/init/aliases Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/init/aliases Fri Nov 19 14:57:47 2004
@@ -0,0 +1,39 @@
+##
+# Bash aliases file
+#
+# Wilfredo Sanchez Jr. | [EMAIL PROTECTED]
+##
+
+##
+# Aliases
+##
+
+#alias .='cwd'
+alias ..='cd ..'
+alias cd..='cd ..'
+alias cdwd='cd $(/bin/pwd)'
+alias cwd='echo $PWD'
+alias l='ls -lg'
+
+##
+# Functions
+##
+
+function files () { find ${1} -type f -print ; }
+function ff () { find . -name ${1} -print ; }
+function ll () { ls -lag "$@" | more ; }
+function word () { fgrep -i "$*" /usr/dict/web2 ; }
+function wordcount () { cat "${1}" | tr -s ' .,;:?\!()[]"' '\012' | \
+ cat -n | tail -1 | awk '{print $1}' ; }
+
+##
+# Read user's aliases
+##
+if [ -r ${bash_initdir}/aliases.mine ]; then
+ source ${bash_initdir}/aliases.mine
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -u -Naur bash-3.0/init/bash.defaults bash-3.0.fink/init/bash.defaults
--- bash-3.0/init/bash.defaults Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/init/bash.defaults Fri Nov 19 14:57:47 2004
@@ -0,0 +1,27 @@
+##
+# Bash
+# User preferences file
+# Override these in rc.mine
+#
+# Wilfredo Sanchez Jr. | [EMAIL PROTECTED]
+# July 09, 1992
+#
+# MIT Project Athena
+##
+
+if [ -n "$PS1" ]; then
+
+ # Prompts
+ PS1='[\h:\w] \u\$ '
+ PS2=' -> '
+ #PS3=
+ #PS4=
+
+ set -o emacs
+
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -u -Naur bash-3.0/init/completions bash-3.0.fink/init/completions
--- bash-3.0/init/completions Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/init/completions Fri Nov 19 14:57:47 2004
@@ -0,0 +1,17 @@
+##
+# Add completions for the fink command
+##
+complete -W "--help --version apropos configure describe install list
selfupdate selfupdate-cvs remove update-all" fink
+
+##
+# Read user's completions
+##
+if [ -r ${bash_initdir}/completions.mine ]; then
+ source ${bash_initdir}/completions.mine
+fi
+
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -u -Naur bash-3.0/init/environment bash-3.0.fink/init/environment
--- bash-3.0/init/environment Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/init/environment Fri Nov 19 14:57:47 2004
@@ -0,0 +1,29 @@
+##
+# Bourne Again Shell environment file
+# Global environment setup
+#
+# Wilfredo Sanchez Jr. | [EMAIL PROTECTED]
+# July 09, 1992
+#
+# MIT Project Athena
+#
+# ORIGINAL SOURCES: /usr/athena/lib/init/cshrc (ATHENA REL 7.3P)
+##
+
+export ENV_SET="YES" # avoid repeat
+
+# File creation mask
+umask 022 # all files created are -rw-r--r--
+
+##
+# Load user environment
+##
+
+if [ -f ${bash_initdir}/environment.mine ]; then
+ source ${bash_initdir}/environment.mine
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -u -Naur bash-3.0/init/logout bash-3.0.fink/init/logout
--- bash-3.0/init/logout Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/init/logout Fri Nov 19 14:57:47 2004
@@ -0,0 +1,15 @@
+##
+# Destroy credentials
+##
+
+if [ -z "${TERM_PROGRAM}" ]; then
+ # Don't run these commands if the shell is launched by Terminal,
+ # even if it's a login shell.
+
+ if klist -s; then kdestroy; fi
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -u -Naur bash-3.0/init/profile bash-3.0.fink/init/profile
--- bash-3.0/init/profile Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/init/profile Fri Nov 19 14:57:47 2004
@@ -0,0 +1,31 @@
+##
+# Set path
+##
+
+export PATH="${HOME}/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
+export MANPATH="${HOME}/man:/usr/local/share/man:/usr/share/man"
+
+##
+# Read user's .profile
+##
+ [EMAIL PROTECTED]@/share/init
+default_bash_initdir=${default_initdir}/bash
+ user_initdir=~/Library/init
+ user_bash_initdir=${user_initdir}/bash
+
+if [ -r ${user_bash_initdir} ]; then
+ initdir=${user_initdir}
+ bash_initdir=${user_bash_initdir}
+else
+ initdir=${default_initdir}
+ bash_initdir=${default_bash_initdir}
+fi
+
+if [ -r ${bash_initdir}/profile.mine ]; then
+ source ${bash_initdir}/profile.mine
+fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -u -Naur bash-3.0/init/rc bash-3.0.fink/init/rc
--- bash-3.0/init/rc Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/init/rc Fri Nov 19 14:57:47 2004
@@ -0,0 +1,71 @@
+##
+# Bourne Again Shell config file
+#
+# Wilfredo Sanchez Jr. | [EMAIL PROTECTED]
+# July 09, 1992
+#
+# MIT Project Athena
+#
+# ORIGINAL SOURCES: /usr/athena/lib/init/cshrc (ATHENA REL 7.3P)
+##
+
+ [EMAIL PROTECTED]@/share/init
+default_bash_initdir=${default_initdir}/bash
+ user_initdir=~/Library/init
+ user_bash_initdir=${user_initdir}/bash
+
+if [ -r ${user_bash_initdir} ]; then
+ initdir=${user_initdir}
+ bash_initdir=${user_bash_initdir}
+else
+ initdir=${default_initdir}
+ bash_initdir=${default_bash_initdir}
+fi
+
+# SET UP HOST-DEPENDANT VARIABLES, ETC.
+
+host=$(echo $(hostname) | tr A-Z a-z)
+
+user=`whoami`
+
+export HOST=${host}
+export USER=${user}
+
+# User ID
+if [ -z "${uid}" ]; then uid=$(id | cut -d = -f 2 | cut -d \( -f 1); fi
+
+# SET COMMAND SEARCH PATH AND MAN PATH
+if [ -f ${bash_initdir}/path ]; then source ${bash_initdir}/path; fi
+
+# ENVIRONMENT SETUP
+
+if [ -n "${PS1}" ]; then interactive="YES"; fi
+
+if [ -z "${ENV_SET}" ]; then
+ if [ -f ${default_bash_initdir}/environment ]; then
+ #echo "Initializing environment..."
+ source ${default_bash_initdir}/environment
+ fi
+fi
+
+if [ -r ${default_bash_initdir}/bash.defaults ]; then
+ source ${default_bash_initdir}/bash.defaults
+fi
+
+if [ "${interactive}" = "YES" ]; then
+ # These aren't useful for non-interactive sessions
+ if [ -f ${default_bash_initdir}/aliases ]; then
+ source ${default_bash_initdir}/aliases
+ fi
+ if [ -f ${default_bash_initdir}/completions ]; then
+ source ${default_bash_initdir}/completions
+ fi
+fi
+
+# DEFAULT LOGIN SOURCES
+if [ -f ${bash_initdir}/rc.mine ]; then source ${bash_initdir}/rc.mine; fi
+
+# Local Variables:
+# mode:shell-script
+# sh-shell:bash
+# End:
diff -u -Naur bash-3.0/pathnames.h.in bash-3.0.fink/pathnames.h.in
--- bash-3.0/pathnames.h.in Tue Feb 25 11:31:46 2003
+++ bash-3.0.fink/pathnames.h.in Fri Nov 19 14:57:47 2004
@@ -25,7 +25,7 @@
#define DEFAULT_HOSTS_FILE "/etc/hosts"
/* The default login shell startup file. */
-#define SYS_PROFILE "/etc/profile"
+#define SYS_PROFILE "@PREFIX@/etc/profile"
/* The default location of the bash debugger initialization/startup file. */
#define DEBUGGER_START_FILE "@DEBUGGER_START_FILE@"
diff -u -Naur bash-3.0/profile.fink bash-3.0.fink/profile.fink
--- bash-3.0/profile.fink Wed Dec 31 19:00:00 1969
+++ bash-3.0.fink/profile.fink Fri Nov 19 14:57:47 2004
@@ -0,0 +1 @@
+source @PREFIX@/share/init/bash/profile
--- NEW FILE: mirbsdksh.info ---
Package: mirbsdksh
Version: 1.20
Revision: 1
Source: http://mirbsd.bsdadvocacy.org/MirOS/distfiles/mirbsdksh-R20.cpio.gz
Source-MD5: 2267876639a682dd8d43f28aa697241c
DocFiles: ksh/CONTRIBUTORS ksh/NOTES ksh/README
NoSourceDirectory: True
PatchScript: pax -zf mirbsdksh-R20.cpio.gz -r
CompileScript: cd ksh;export SHELL=bash WEIRD_OS=1;bash ./Build.sh
InstallScript: <<
/usr/bin/install -d -m 755 %d%p/{bin,share/man/{man,cat}1}
/usr/bin/install -c -s -m 555 ksh/mksh %d%p/bin/mirbsdksh
/usr/bin/install -c -m 444 ksh/mksh.cat1 %d%p/share/man/cat1/mirbsdksh.0
/usr/bin/install -c -m 444 ksh/mksh.1 %d%p/share/man/man1/mirbsdksh.1
<<
Description: Pdk-based shell
DescUsage: <<
Add '/sw/bin/mirbsdksh' to your /etc/shells so users can use
mirbsdksh as there default shell
<<
DescDetail: <<
This is a more or less portable version of the pdksh derivate Korn shell
which comes, as an alternative to the default C Shell.
Additional Homepage: http://wiki.mirbsd.de/MirbsdKsh
<<
DescPort: Not performing self-test because a bug in perl
License: BSD
Homepage: http://mirbsd.de/
Maintainer: Andreas Gockel <[EMAIL PROTECTED]>
--- NEW FILE: bash-completion.info ---
Package: bash-completion
Version: 20041017
Revision: 1
Source: http://www.caliban.org/files/bash/%n-%v.tar.gz
Source-MD5: b9f75cc7b11e5768d360f4a28f44067b
SourceDirectory: bash_completion
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
CompileScript: echo "none needed"
InstallScript: <<
install -d -m 755 %i/etc
install -d -m 755 %i/etc/bash_completion.d
install -d -m 755 %i/etc/profile.d
install -m 755 bash_completion %i/etc/
install -m 755 bash-completion.sh %i/etc/profile.d/
install -m 755 fink.sh open.sh contrib/* %i/etc/bash_completion.d/
<<
DocFiles: BUGS COPYING Changelog README
Description: Command-line completions for bash
DescDetail: <<
This is a set of addons for doing command-line completion for
common tasks, using the bash shell.
<<
DescPort: <<
Added var prefix to use fink's apt-get/dpkg and rpm dbs
<<
License: GPL
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>
Homepage: http://www.caliban.org/bash/index.shtml
--- NEW FILE: scsh.info ---
Package: scsh
Version: 0.6.6
Revision: 12
Description: Unix shell embedded in Scheme
License: BSD
Maintainer: Michel Schinz <[EMAIL PROTECTED]>
Source: ftp://ftp.scsh.net/pub/scsh/0.6/%n-%v.tar.gz
Source-MD5: fa0a62f8ec7b0629c297144c59027ba4
ConfigureParams: --with-lib-dirs-list='("%p/share/scsh-0.6/modules")'
BuildDepends: gcc3.3
CompileScript: <<
export CC=gcc-3.3; export CXX=g++-3.3; ./configure %c
make CC=gcc-3.3 CXX=g++-3.3
<<
DocFiles: COPYING RELEASE
InstallScript: <<
make install DESTDIR=%d mandir=%p/share/man/man1
mkdir -p %i/share/doc/%n
ln -s ../../../lib/scsh/doc/scsh-manual/man.pdf %i/share/doc/%n/scsh-manual.pdf
ln -s ../../../lib/scsh/doc/scsh-manual/html %i/share/doc/%n/scsh-manual-html
echo "Additional documentation is available in directory %p/lib/scsh/doc" >
%i/share/doc/%n/README
<<
Homepage: http://www.scsh.net/
DescDetail: <<
Scsh is a Unix Scheme shell which uses Scheme as its scripting
language. It is currently aimed primarily at scripting, rather than
interactive use, and makes for a nice Perl/Python/... replacement.
Scsh uses Scheme48 as the underlying Scheme interpreter.
<<
DescUsage: <<
After starting the scsh interpreter (scsh), you can get help by typing
,help
at the prompt.
<<
--- NEW FILE: ash.patch ---
diff -Naur ash-20020131-1.old/Makefile.in ash-20020131-1.new/Makefile.in
--- ash-20020131-1.old/Makefile.in Fri Feb 1 07:26:19 2002
+++ ash-20020131-1.new/Makefile.in Tue Apr 9 20:00:52 2002
@@ -83,7 +83,7 @@
sh_new_MANS = ash.1
-CPPFLAGS = -DSMALL -DSHELL -Dlint -Wall -Wunused
+CPPFLAGS = -DSMALL -DSHELL -Dlint -Wall -Wunused -D__unused=
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
diff -Naur ash-20020131-1.old/cd.c ash-20020131-1.new/cd.c
--- ash-20020131-1.old/cd.c Sun Apr 15 22:51:45 2001
+++ ash-20020131-1.new/cd.c Tue Apr 9 19:24:34 2002
@@ -48,6 +48,7 @@
#include <string.h>
#include <unistd.h>
#include <errno.h>
+#include <limits.h>
/*
* The cd and pwd commands.
@@ -96,9 +97,9 @@
char *
getpwd()
{
- char buf[MAXPWD];
+ char buf[PATH_MAX];
- if (!getcwd(buf, MAXPWD))
+ if (!getcwd(buf, PATH_MAX))
return NULL;
return savestr(buf);
--- NEW FILE: zsh-templates.info ---
Package: zsh-templates
Version: 0.7.3
Revision: 1
Source: http://chemistry.ucsc.edu/~wgscott/mystuff/%n-%v.tgz
Source-MD5: aa3c96b82edaff84509f15649fc3bd1d
Depends: macosx, zsh (>= 4.2.1-13)
License: GPL
Maintainer: W. G. Scott <[EMAIL PROTECTED]>
Description: Template files for zsh customization
PatchScript: <<
#!/bin/zsh -f
perl -pi.bak -e 's|ALT_SWPREFIX|%p|g' etc/zshenv
rm -f etc/*.bak
<<
CompileScript:<<
<<
InstallScript:<<
#!/bin/zsh -f
mkdir -p %i/share/zsh/templates/Library/init/zsh
mkdir -p %i/share/zsh/templates/etc
mkdir -p %i/etc/zsh
#
cp -rf Library/init/zsh/* %i/share/zsh/templates/Library/init/zsh/.
cp etc/zsh* %i/share/zsh/templates/etc/.
#
# I'm not sure how to handle this, but this avoids clobbering
# files that the user may have installed manually.
if [[ -f %p/etc/zsh/zshenv ]];then
mv -f %p/etc/zsh/zshenv %p/etc/zsh/zshenv.old
fi
if [[ -f %p/etc/zsh/zshrc ]];then
mv -f %p/etc/zsh/zshrc %p/etc/zsh/zshrc.old
fi
#
ln -s %p/share/zsh/templates/etc/zshenv %i/etc/zsh/zshenv
ln -s %p/share/zsh/templates/etc/zshrc %i/etc/zsh/zshrc
<<
PostInstScript: <<
chmod a+x
%p/share/zsh/templates/Library/init/zsh/local-functions/darwin/whatsnew
echo ""
echo
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo "Please issue \"fink describe zsh-templates\","
echo "or \"man zsh-templates\" for more details."
echo "Please issue
%p/share/zsh/templates/Library/init/zsh/local-functions/darwin/whatsnew"
echo "to find out what's new in this version."
echo
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
echo ""
sleep 5
<<
DescDetail: <<
These files work "out of the box" but the template files
can be modified as follows. (The %p/etc/zsh/zshenv and
%p/etc/zsh/zshrc should not have to be modified. If you
have to modify these, please report this as a bug.)
.
1. Issue sudo mkdir -p /Library/init/zsh/local-functions
.
2. Copy any file you want to modify from
%p/share/zsh/templates/Library/init/zsh into
/Library/init/zsh and then edit it there. That
file will now be read INSTEAD OF the corresponding
file in %p/share/zsh/templates/Library/init/zsh.
Anything that appears in /Users/$USER/Library/init/zsh
will be read IN ADDITION TO the other files. The directories
%p/share/zsh/templates/Library/init/zsh/local-functions
and /Library/init/zsh/local-functions are both in the
$FPATH by default; a funtion of the same name in
/Library/init/zsh/local-functions takes precedence over that
in %p/share/zsh/templates/Library/init/zsh/local-functions.
This structure permits customizations that will be preserved
during fink package upgrade.
.
3. To change the prompt theme, issue the command "switch_prompt"
.
4. To use with /bin/zsh, copy or link the file
%p/share/zsh/templates/etc/zshenv to /etc/zshenv and
likewise with %p/share/zsh/templates/etc/zshrc to
/etc/zshrc. These two files are both required and have been
designed in such a way that the should not require editing.
.
5. The faster-loading "open" completion function is now enabled
by default. However, to ensure it functions optimally, type the
command "enable_faster_open". This requires an up-to-date
locate database to find the various Applications. It will
prompt you to update this.
.
6. By default, these scripts start Apple's X11.app (if you have it)
if it is not already running. This behavior, as well as several
somewhat "hidden" features of X11.app, can be enabled or disabled
by issuing the command "customize_x11".
.
7. A brief description of the functions and completions
provided can be had by typing "help_template_functions"
optionally with the function name. Only a subset are
autoloaded by default. Load others individually by
uncommenting "autoload -U foo" lines or setting the appropriate
vairables indicated in the file functions.local.
.
Modifications and enhancements of zsh distributed templates
were written by Gary Kerbaugh, W. G. Scott, Wataru Kagawa
and several others. Completion functions _open, _fink,
_hdiutils, _defaults and their dependencies were written by
Motoi Washida and will be included by default in future versions
of zsh.
.
More details are available here: http://tinyurl.com/4k7a9
<<
HomePage: http://tinyurl.com/4k7a9
--- NEW FILE: bash-doc.info ---
Package: bash-doc
Version: 3.0
Revision: 1
Suggests: bash, texinfo
Source: mirror:gnu:bash/bash-%v.tar.gz
Source-MD5: 26c4d642e29b3533d8d754995bc277b3
BuildDepends: gcc3.3
ConfigureParams: --enable-restricted --with-curses
--with-installed-readline=%p/lib
PatchScript: sed 's|@PREFIX@|%p|g' <%a/bash.patch | patch -p1
SetCC: gcc-3.3
SetCXX: g++-3.3
CompileScript:<<
cd support ; make man2html
MAN2HTML=support/man2html; HTMLPOST=doc/htmlpost.sh; ${MAN2HTML} doc/bash.1 |
${HTMLPOST} > doc/bash.html
TEXI2HTML=../support/texi2html; TEXINPUTDIR=../lib/readline/doc; cd doc;
${TEXI2HTML} -menu -monolithic -I ${TEXINPUTDIR} bashref.texi
<<
InstallScript: <<
mkdir -p %i/share/doc/%n/html
install -m 644 doc/bash.html doc/bashref.html %i/share/doc/%n/html
mv examples %i/share/doc/%n
mkdir -p %i/share/info
install -m 644 doc/bashref.info %i/share/info/bash.info
mkdir -p %i/share/doc/bash/
ln -s %p/share/doc/%n/examples %i/share/doc/bash/
ln -s %p/share/doc/%n/html %i/share/doc/bash/
<<
DocFiles: COPYING
InfoDocs: bash.info
Description: Extra documentation for the GNU Bourne Again Shell
DescDetail: <<
Documentation in texinfo and html format and example files for bash.
<<
DescPort: <<
Manually build man2html and install the info & html documents to
avoid running configure for the entire package.
Man files installed as part of main bash package.
Texinfo is not required to build this package, only to read the
bash.info file.
Thanks to Carsten Klapp for help breaking bash-doc out into a
separate package.
<<
License: GPL
Maintainer: Christian Swinehart <[EMAIL PROTECTED]>
Homepage: http://www.gnu.org/software/bash/bash.html
--- NEW FILE: bash.info ---
Package: bash
Version: 3.0
Revision: 2
Depends: libiconv
Recommends: bash-completion, bash-doc
BuildDepends: gettext-dev, gettext-bin, gettext-tools, libiconv-dev
Source: gnu
Source-MD5: 26c4d642e29b3533d8d754995bc277b3
NoSetCPPFLAGS: yes
SetCFLAGS: -I%p/include -no-cpp-precomp
ConfigureParams: --enable-restricted --with-curses
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
CompileScript:<<
./configure %c
make
<<
InstallScript: <<
make install prefix="" DESTDIR=%i infodir=/share/info mandir=/share/man
htmldir=/share/doc/bash-doc/html
mkdir -p %i/share/init/bash
mv init/* %i/share/init/bash/
mkdir -p %i/etc
mv profile.fink %i/etc/profile
(cd %i/bin; ln -s bash rbash;)
install -m 644 doc/rbash.1 %i/share/man/man1/
rm -r %i/share/info
rm -r %i/share/doc/bash-doc
<<
DocFiles: doc/FAQ doc/INTRO CHANGES COPYING NEWS COMPAT README.Fink
Description: The GNU Bourne Again Shell
DescDetail: <<
Bash is an sh-compatible command language interpreter that executes
commands read from the standard input or from a file. Bash also
incorporates useful features from the Korn and C shells (ksh and csh).
Bash is ultimately intended to be a conformant implementation of the IEEE
Posix Shell and Tools specification (IEEE Working Group 1003.2).
<<
DescUsage: <<
See /sw/share/doc/bash/README.Fink for configuration advice.
<<
DescPort: <<
version >= 2.05a can now use the system version of readline instead
of building its own local copy. Installs correctly after
commenting out the install-info line in doc/Makefile.in. Compilation
fails if you define CPPFLAGS, so relevant switches are put into
CFLAGS instead.
Incorporates patch from bash-bug mailing list for tab-completion
of ./
<<
License: GPL
Maintainer: Christian Swinehart <[EMAIL PROTECTED]>
Homepage: http://www.gnu.org/software/bash/bash.html
--- NEW FILE: tcsh.patch ---
diff -u -Naur tcsh-6.13.00/Announce-6.13.00 tcsh-6.13.00.fink/Announce-6.13.00
--- tcsh-6.13.00/Announce-6.13.00 Wed Dec 31 19:00:00 1969
+++ tcsh-6.13.00.fink/Announce-6.13.00 Wed May 19 14:15:47 2004
@@ -0,0 +1,34 @@
+Hello,
+
+I am pleased to announce that tcsh-6.13 is now available; this version
+fixes a number of bugs and adds the following enhancements:
+
+New Features:
+ * turn on kanji and dspmbyte by default
+
+Bug Fixes:
+ * too many to enumerate here, consult the fixes file
+
+Tcsh is an enhanced version of the Berkeley C-shell that offers command
+line editing and completion plus many other little things that preserve
+the length of your fingers.
+
+Tcsh runs on most unix machines, VMS_POSIX, OS/2 EMX, WIN32, Amiga...
+
+You can get tcsh from ftp://ftp.astron.com/pub/tcsh/tcsh-6.13.00.tar.gz
+or from the mirrors:
+
+ ftp://ftp.gw.com/pub/unix/tcsh/tcsh-6.13.00.tar.gz [US]
+ ftp://ftp.funet.fi/pub/unix/shells/tcsh/tcsh-6.13.00.tar.gz [Finland]
+
+ MD5 (tcsh-6.13.00.tar.gz) = 11c0c9c9148652dc01270c4880d1cc6e
+
+This is a gzip (GNU zip) tar archive. If you don't have GNU zip you can
+get it from ftp.gnu.org or other GNU mirrors.
+
+I would like to thank:
+
+ o everyone who sent bug reports
+ o the beta team for all their help, bug fixes, and suggestions
+
++ Kim
--- NEW FILE: scsh-install-lib.info ---
Package: scsh-install-lib
Version: 1.0.0
Revision: 1
Description: Library to install packages for scsh
License: BSD
Maintainer: Michel Schinz <[EMAIL PROTECTED]>
Depends: scsh (>= 0.6.6-1)
Source: http://lamp.epfl.ch/~schinz/scsh_packages/%n-%v.tar.gz
Source-MD5: 9a51c1221ac3adf257a1ba295b4dd7b4
CompileScript: true
DocFiles: README COPYING
InstallScript: ./install.scm --prefix=%p --dest-dir=%d
Homepage: http://lamp.epfl.ch/~schinz/scsh_packages/
--- NEW FILE: zsh.info ---
Package: zsh
Version: 4.2.4
Revision: 11
Depends: libiconv, pcre-shlibs, libncurses5-shlibs
BuildDepends: libiconv-dev, pcre, pcre-bin, libncurses5
CustomMirror: <<
Master: ftp://ftp.zsh.org/pub/
eur: ftp://ftp.lysator.liu.se/pub/unix/zsh/
eur-NL: ftp://ftp.demon.nl/pub/mirrors/zsh/
eur-DE: ftp://ftp.demon.nl/pub/mirrors/zsh/
aus-AU: ftp://ftp.zsh.org/zsh/
eur-DK: ftp://sunsite.dk/pub/unix/shells/zsh/
eur-FI: ftp://sunsite.dk/pub/unix/shells/zsh/
eur-FR: ftp://nephtys.lip6.fr/pub/unix/shells/zsh/
eur-HU: ftp://ftp.cs.elte.hu/pub/zsh/
eur-IL: ftp://ftp.math.technion.ac.il/pub/zsh/
asi-JP: ftp://ftp.math.technion.ac.il/pub/zsh/
asi-JP: ftp://ftp.ayamura.org/pub/zsh/
asi-KR: ftp://ftp.ayamura.org/pub/zsh/
eur-PL: ftp://sunsite.icm.edu.pl/pub/unix/shells/zsh/
eur-RO: ftp://ftp.roedu.net/pub/mirrors/ftp.zsh.org/pub/zsh/
eur-RO: ftp://ftp.kappa.ro/pub/mirrors/ftp.zsh.org/pub/zsh/
eur-SE: ftp://ftp.lysator.liu.se/pub/unix/zsh/
eur-UK: ftp://ftp.lysator.liu.se/pub/unix/zsh/
nam-US: http://mirrors.theonlinerecordstore.com/zsh/
<<
Source: mirror:custom:/%n-%v.tar.bz2
Source-MD5: 5c37fa9eb659458fe4f7f80da17fb09c
Source2: mirror:custom:%n-%v-doc.tar.bz2
Source2-MD5: 5ffbe07c766dae7708f3f0eb2c1a779f
ConfigureParams: --mandir=%p/share/man --infodir=%p/share/info
--enable-etcdir=%p/etc/%n --enable-maildir-support --enable-pcre
--enable-zsh-secure-free --enable-fndir=%p/share/%n --enable-function-subdirs
--with-curses-terminfo --with-tcsetpgrp
CompileScript:<<
perl -pi.bak -e "s;DL_EXT=so;DL_EXT=dylib;g" configure
./configure %c
perl -pi.bak -e "s;-ldl -ltinfo -lm -lc;-L%p/lib -lpcre -L%p/lib -lncurses
-L%p/lib -liconv -ltinfo -ldl -lm -lc;" Makefile
perl -pi.bak -e "s;-bundle -flat_namespace -undefined suppress;-bundle
-twolevel_namespace -undefined dynamic_lookup;" Makefile
make
<<
InstallScript:<<
mkdir -p %i/etc/zsh
make install DESTDIR=%d
<<
DocFiles: Doc/zsh.dvi Doc/*.html StartupFiles/* ChangeLog* INSTALL LICENCE
META-FAQ README
Description: The Z Shell
DescDetail: <<
Zsh is a shell designed for interactive use, although it is also
a powerful scripting language. Many of the useful features of bash,
ksh, and tcsh were incorporated into zsh; many original
features were added.
It is recommended that you read
http://zsh.sunsite.dk/Intro/intro_toc.html
before installing this shell.
<<
DescUsage: <<
All config files should be kept in %p/etc/zsh.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ATTENTION ATTENTION
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This shell is NOT preconfigured. Sample configure scripts
can be found in your %p/share/doc/zsh directory
You may manually move those sample files to
%p/etc/zsh or alter them to your likings!
Documentation is included by default, please read
it carefully.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ATTENTION ATTENTION
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
<<
DescPort: <<
Getting it from a specific sourceforge mirror until I add Custom
mirrors. Their
mirrors seem to be pretty messed up.
<<
License: GPL
Maintainer: Darian Lanx <[EMAIL PROTECTED]>
Homepage: http://zsh.sunsite.dk/
--- NEW FILE: tcsh.info ---
Package: tcsh
Version: 6.13
Revision: 1
Description: TENEX C Shell, an enhanced Berkeley csh
License: BSD
Maintainer: Christian Swinehart <[EMAIL PROTECTED]>
Source: ftp://ftp.astron.com/pub/tcsh/%n-%v.00.tar.gz
Source-MD5: 11c0c9c9148652dc01270c4880d1cc6e
SourceDirectory: %n-%v.00
SetCPPFLAGS: -no-cpp-precomp
UpdateConfigGuess: true
PatchScript: sed 's|@PREFIX@|%p|g' <%a/%n.patch | patch -p1
CompileScript: <<
./configure %c
make
perl tcsh.man2html
groff -t -man tcsh.man | gzip -c > tcsh.ps.gz
<<
InstallScript: <<
make install prefix=%i
make install.man prefix=%i
mkdir -p %i/share/man/man1
mv %i/man/man1/tcsh.1 %i/share/man/man1
rm -r %i/man
mkdir -p %i/share/doc/%n
mv tcsh.html %i/share/doc/%n/html
<<
DocFiles: FAQ complete.tcsh csh-mode.el NewThings Fixes Announce-%v.00
tcsh.ps.gz
DescDetail: <<
tcsh (TENEX C Shell) is an enhanced version of the Berkeley
Unix C shell (csh(1)). It includes all the features of 4.4BSD
C shell, plus a command-line editor, programmable word completion,
spelling correction and more.
This package contains a more recent version than the 6.12 revision
included with OS X 10.3. See the docfile `Announce-6.13.00' for
details.
<<
DescPackaging: <<
The homepage is actually from the Oreilly csh & tcsh
book. It may not be official, but a) it's unusually informative,
and b) astron.com doesn't appear to have a web presence at all.
<<
Homepage: http://www.tcsh.org/
--- NEW FILE: ash.info ---
Package: ash
Version: 20040127-1
Revision: 1
Source: mirror:custom:%n-%v-src.tar.bz2
Source-MD5: 8096502abda7653e0099d741185a678b
CustomMirror: <<
asi-JP: http://www.t.ring.gr.jp/pub/pc/gnu-win32/release/ash/
Primary: http://www.cygwin.com/packages/ash/
<<
SourceDirectory: %n-%v
Patch: %n.patch
SetCFLAGS: -O3 -fstrict-aliasing -funroll-loops -pipe
ConfigureParams: --mandir=%p/share/man
CompileScript: ./configure %c; make -j2
InstallScript: <<
make install DESTDIR=%d
mv -f %i/bin/sh %i/bin/ash
rm -f %i/share/man/man1/sh.1
install -d -m 755 %i/share/doc/%n
head -n 34 ash.1 >%i/share/doc/%n/LICENSE
<<
DocFiles: ChangeLog* TOUR
Description: NetBSD /bin/sh
License: BSD
Maintainer: None <[email protected]>
DescPackaging: <<
Originally packaged by Masanori Sekino.
<<
Homepage: http://www.cygwin.com/packages/ash/
--- NEW FILE: ksh.info ---
Package: ksh
Version: 20040229
Revision: 1
Source: http://www.research.att.com/~gsf/download/tgz/ast-ksh.2004-02-29.tgz
Source2: http://www.research.att.com/~gsf/download/tgz/INIT.2004-02-29.tgz
Source-MD5: fa91217bc99ccf9cc32b3250a2431185
Source2-MD5: cd4cc8fe24b040685451bea07f9bd163
BuildDepends: gettext-dev, gettext-bin, gettext-tools, libiconv-dev
NoSourceDirectory: true
Description: The Original AT&T Korn Shell
DescDetail: <<
The KornShell language was designed and developed by David G. Korn
at AT&T Bell Laboratories. It is an interactive command language
that provides access to the UNIX system and to many other systems,
on the many different computers and workstations on which it is
implemented. This is Ksh93 which is intended to conform to the Shell
Language Standard developed by the IEEE POSIX 1003.2 Shell and
Utilities Language Committee.
<<
DescUsage: <<
To be able to use this shell as login shell (and for some other things),
you have to add it to your /etc/shells file.
<<
CompileScript: <<
./bin/package read || true
./bin/package make CPPFLAGS=-I%p/include LDFLAGS=-L%p/lib
<<
InstallScript: <<
mkdir -p %i/bin
mkdir -p %i/share/man/man1
install -c -s -m 755 arch/darwin.ppc/bin/ksh %i/bin/ksh
install -c -m 644 arch/darwin.ppc/man/man1/sh.1 %i/share/man/man1/ksh.1
cp ./lib/package/LICENSES/ast ./LICENSE
<<
License: Restrictive
DocFiles: src/cmd/ksh93/README LICENSE
Homepage: http://www.kornshell.com
Maintainer: Jeffrey Whitaker <[EMAIL PROTECTED]>
--- NEW FILE: bash-completion.patch ---
diff -uNr bash_completion/bash-completion.sh
bash_completion-new/bash-completion.sh
--- bash_completion/bash-completion.sh 1969-12-31 18:00:00.000000000 -0600
+++ bash_completion-new/bash-completion.sh 2004-11-04 16:41:45.000000000
-0600
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+if test ${SHELL#*bin/} = "bash"; then
+ bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
+ if [ "$PS1" ] && [ $bmajor -eq 2 ] && [ $bminor '>' 04 ] \
+ && [ -f @PREFIX@/etc/bash_completion ]; then # interactive shell
+ # Source completion code
+ . @PREFIX@/etc/bash_completion
+ fi
+ if [ -f @PREFIX@/share/init/bash/completions ]; then
+ . @PREFIX@/share/init/bash/completions
+ fi
+ unset bash bmajor bminor
+fi
diff -uNr bash_completion/bash_completion bash_completion-new/bash_completion
--- bash_completion/bash_completion 2004-10-17 03:25:34.000000000 -0500
+++ bash_completion-new/bash_completion 2004-11-04 16:48:19.000000000 -0600
@@ -31,14 +31,14 @@
if [ -n "${FUNCNAME:-}" ]; then
# we're being sourced from within a function, so we can't use
# 'declare', as this will create local variables within a function
- BASH_COMPLETION="${BASH_COMPLETION:-/etc/bash_completion}" 2>/dev/null
- BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=/etc/bash_completion.d}" \
+ BASH_COMPLETION="${BASH_COMPLETION:[EMAIL
PROTECTED]@/etc/bash_completion}" 2>/dev/null
+ BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:[EMAIL
PROTECTED]@/etc/bash_completion.d}" \
2>/dev/null
else
- declare -r BASH_COMPLETION="${BASH_COMPLETION:-/etc/bash_completion}" \
+ declare -r BASH_COMPLETION="${BASH_COMPLETION:[EMAIL
PROTECTED]@/etc/bash_completion}" \
2>/dev/null
declare -r \
- BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:=/etc/bash_completion.d}"\
+ BASH_COMPLETION_DIR="${BASH_COMPLETION_DIR:[EMAIL
PROTECTED]@/etc/bash_completion.d}"\
2>/dev/null
fi
@@ -167,7 +167,7 @@
# use GNU sed if we have it, since its extensions are still used in our code
#
-[ $UNAME != Linux ] && have gsed && alias sed=gsed
+[ $UNAME != Linux ] && [ $UNAME != Darwin ] && have gsed && alias sed=gsed
# This function checks whether a given readline variable
# is `on'.
@@ -219,7 +219,9 @@
#
_interfaces()
{
- if [ -f /etc/debian_version ]; then
+ if [ $UNAME eq "Darwin" ]; then
+ COMPREPLY=( $( /sbin/ifconfig | grep -E '^[^[:space:]]+:' | cut
-d: -f1 ) )
+ elif [ -f /etc/debian_version ]; then
# Debian system
COMPREPLY=( $( sed -ne 's|^iface \([^ ]\+\).*$|\1|p' \
/etc/network/interfaces ) )
@@ -319,8 +321,8 @@
_services()
{
local sysvdir famdir
- [ -d /etc/rc.d/init.d ] && sysvdir=/etc/rc.d/init.d ||
sysvdir=/etc/init.d
- famdir=/etc/xinetd.d
+ [ -d @PREFIX@/etc/rc.d/init.d ] && [EMAIL PROTECTED]@/etc/rc.d/init.d
|| [EMAIL PROTECTED]@/etc/init.d
+ [EMAIL PROTECTED]@/etc/xinetd.d
COMPREPLY=( $( builtin echo
$sysvdir/!(*.rpmsave|*.rpmorig|*~|functions)) )
if [ -d $famdir ]; then
@@ -332,7 +334,7 @@
# Linux ifconfig(8) and iwconfig(8) helper function
#
-[ $UNAME = Linux -o $UNAME = FreeBSD ] && { have ifconfig || have iwconfig; }
&&
+[ $UNAME = Linux -o $UNAME = FreeBSD -o $UNAME = Darwin ] && { have ifconfig
|| have iwconfig; } &&
_ifwconfig()
{
COMPREPLY=()
@@ -503,7 +505,7 @@
# 'service' command and/or the SysV init.d directory, followed by
# that script's available commands
#
-{ have service || [ -d /etc/init.d/ ]; } &&
+{ have service || [ -d @PREFIX@/etc/init.d/ ]; } &&
_service()
{
local cur sysvdir
@@ -519,8 +521,8 @@
# don't complete past 2nd token
[ $COMP_CWORD -gt 2 ] && return 0
- [ -d /etc/rc.d/init.d ] && sysvdir=/etc/rc.d/init.d \
- || sysvdir=/etc/init.d
+ [ -d @PREFIX@/etc/rc.d/init.d ] && [EMAIL PROTECTED]@/etc/rc.d/init.d \
+ || [EMAIL PROTECTED]@/etc/init.d
if [[ $COMP_CWORD -eq 1 ]] && [[ $prev == "service" ]]; then
_services
@@ -533,8 +535,8 @@
return 0
}
[ -n "${have:-}" ] && complete -F _service service
-[ -d /etc/init.d/ ] && complete -F _service $default \
- $(for i in /etc/init.d/*; do echo ${i##*/}; done)
+[ -d @PREFIX@/etc/init.d/ ] && complete -F _service $default \
+ $(for i in @PREFIX@/etc/init.d/*; do echo ${i##*/}; done)
# chown(1) completion
#
@@ -828,7 +830,7 @@
# Linux and FreeBSD killall(1) completion.
#
-[ $UNAME = Linux -o $UNAME = FreeBSD ] &&
+[ $UNAME = Linux -o $UNAME = FreeBSD -o $UNAME = Darwin ] &&
_killall()
{
local cur
@@ -846,7 +848,7 @@
return 0
}
-[ $UNAME = Linux -o $UNAME = FreeBSD ] && complete -F _killall killall pkill
+[ $UNAME = Linux -o $UNAME = FreeBSD -o $UNAME = Darwin ] && complete -F
_killall killall pkill
# Linux and FreeBSD pgrep(1) completion.
#
@@ -982,7 +984,7 @@
# Linux ifconfig(8) completion
#
-[ $UNAME = Linux -o $UNAME = FreeBSD ] && have ifconfig &&
+[ $UNAME = Linux -o $UNAME = FreeBSD -o $UNAME = Darwin ] && have ifconfig &&
_ifconfig()
{
local cur
@@ -994,7 +996,7 @@
COMPREPLY=( $( compgen -W '[EMAIL PROTECTED]' -- $cur ) )
}
-[ $UNAME = Linux -o $UNAME = FreeBSD ] && have ifconfig &&
+[ $UNAME = Linux -o $UNAME = FreeBSD -o $UNAME = Darwin ] && have ifconfig &&
complete -F _ifconfig ifconfig
# Linux iwconfig(8) completion
@@ -1820,7 +1822,7 @@
if [ -n "$special" ]; then
case $special in
remove)
- if [ -f /etc/debian_version ]; then
+ if [ -f /etc/debian_version ] || [ -x
"@PREFIX@/bin/fink" ]; then
# Debian system
COMPREPLY=( $( _comp_dpkg_installed_packages \
$cur ) )
@@ -1957,7 +1959,7 @@
have aptitude && {
_comp_dpkg_hold_packages()
{
- grep -B 2 'hold' /var/lib/dpkg/status | grep "Package: $1" \
+ grep -B 2 'hold' @PREFIX@/var/lib/dpkg/status | grep "Package: $1" \
| cut -d\ -f2
}
@@ -2118,7 +2120,7 @@
prev=${COMP_WORDS[COMP_CWORD-1]}
if [ "$prev" = "-s" ]; then
- if [ -f /etc/debian_version ]; then
+ if [ -f /etc/debian_version ] || [ -x @PREFIX@/bin/fink ]; then
COMPREPLY=( $( </etc/shells ) )
else
COMPREPLY=( $( chsh -l | grep "^$cur" ) )
@@ -2201,8 +2203,10 @@
kh=()
# ssh config files
- [ -r /etc/ssh/ssh_config ] && config[0]=/etc/ssh/ssh_config
- [ -r ~/.ssh/config ] && config[1]=~/.ssh/config
+ [ -r @PREFIX@/etc/ssh/ssh_config ] && [EMAIL
PROTECTED]@/etc/ssh/ssh_config
+ [ -r /etc/ssh/ssh_config ] && config[1]=/etc/ssh/ssh_config
+ [ -r /etc/ssh_config ] && config[2]=/etc/ssh_config
+ [ -r ~/.ssh/config ] && config[3]=~/.ssh/config
if [ [EMAIL PROTECTED] -gt 0 ]; then
# expand path (if present) to global known hosts file
@@ -3448,7 +3452,7 @@
have dpkg && {
_comp_dpkg_installed_packages()
{
- grep -A 2 "Package: $1" /var/lib/dpkg/status | \
+ grep -A 2 "Package: $1" @PREFIX@/var/lib/dpkg/status | \
grep -B 2 'ok installed' | grep "Package: $1" | cut -d\ -f2
}
@@ -4137,6 +4141,7 @@
# find the admin dir
for i in alternatives dpkg/alternatives rpm/alternatives; do
[ -d /var/lib/$i ] && admindir=/var/lib/$i && break
+ [ -d "@PREFIX@/etc/$i" ] && admindir="@PREFIX@/etc/$i" && break
done
for (( i=1; i < COMP_CWORD; i++ )); do
if [[ "${COMP_WORDS[i]}" == --admindir ]]; then
@@ -7222,6 +7227,7 @@
\"${cur#[\`\"\']}\" 2>/dev/null ) \
$( compgen -d -- $cur ) )
}
+
list=( $( sed -ne '/^# START exclude/,/^# FINISH exclude/p' \
$BASH_COMPLETION | \
# read exclusion compspecs
diff -uNr bash_completion/fink.sh bash_completion-new/fink.sh
--- bash_completion/fink.sh 1969-12-31 18:00:00.000000000 -0600
+++ bash_completion-new/fink.sh 2004-11-04 16:41:46.000000000 -0600
@@ -0,0 +1,128 @@
+#!/bin/bash
+
+#
+# Copyright (c) 2004, Lukas Westermann <contact AT openos DOT ch>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# - Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# - Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials
+# provided with the distribution.
+# - The names of its contributors may not be used to endorse or
+# promote products derived from this software without specific
+# prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+#
+# Completion for Fink command
+#
+# History
+# ---------------------------------
+# Version 1.0.0 - initial release
+# Version 1.0.1 - added test to check fink availability
+# Version 1.0.2 - simplified checks for fink availabiltiy
+# Version 1.0.3 - fixed problems with spaces in completion
+#
+
+[ $UNAME = Darwin ] && have fink && {
+_fink_installed() {
+ fink list -i --tab "$*" | cut -f2 2>/dev/null
+}
+
+_fink_all() {
+ apt-cache pkgnames "$*" 2>/dev/null
+}
+
+_fink_trees() {
+ cat @PREFIX@/etc/fink.conf | sed -e '/^Trees/!d; s/^Trees://' 2>/dev/null
+}
+
+_fink()
+{
+ local cur prev special i
+
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ for (( i=0; i < ${#COMP_WORDS}-1; i++ )); do
+ if [[ ${COMP_WORDS[i]} ==
@(install|update|enable|activate|use|list|remove|disable|deactivate|unuse|delete
\
+
|purge|apropos|describe|desc|description|info|fetch-missing|fetch \
+
|build|rebuild|reinstall|validate|check|scanpackages) ]]; then
+ special=${COMP_WORDS[i]}
+ fi
+ done
+
+ if [ -n "${special}" ]; then
+ case $special in
+
install|enable|activate|use|apropos|describe|desc|description|info|fetch|build)
+ COMPREPLY=( $( _fink_all $cur ) )
+ ;;
+
remove|disable|deactivate|unuse|delete|purge|update|rebuild|reinstall)
+ COMPREPLY=( $( _fink_installed $cur ) )
+ ;;
+ fetch-missing)
+ COMPREPLY=( $( compgen -W '-i --ignore-restrictive' --
$cur ) )
+ ;;
+ validate|check)
+ local IFS=$'\t\n'
+ _filedir '@(deb|info)'
+ #COMPREPLY=( $( compgen -f -- $cur ) )
+ ;;
+ scanpackages)
+ COMPREPLY=( $( compgen -W '$( _fink_trees )' -- $cur ) )
+ ;;
+ list)
+ if [[ "$cur" == -* ]]; then
+ # TODO: Fix problems with --tree=
+ #if [[ $cur == --tree=* || $cur == -t=* ]]; then
+ #local pfx las #res
+ #pfx=$( echo $cur | sed -e
's/^\([^=]*\)=.*$/\1/' )
+ #las=$( echo "$cur" | sed -e 's/^[^=]*=//' )
+ #[[ $las == $cur ]] && las=()
+ #res=$( cat @PREFIX@/etc/fink.conf | sed -e
'/^Trees/!d; s/^Trees://' 2>/dev/null )
+ #COMPREPLY=( $( compgen -W '$( _fink_trees )'
-- "${las}" ) )
+ #else
+ COMPREPLY=( $( compgen -W '-h --help -t --tab
-i --installed -o --outdated -u --uptodate -n --notinstalled \
+ -s --section -m
--maintainer --tree -w --width' -- $cur ) )
+ #fi
+ else
+ COMPREPLY=( $( _fink_all $cur ) )
+ fi
+ ;;
+ esac
+
+ return 0
+ fi
+
+ if [[ "$cur" == -* ]]; then
+ COMPREPLY=( $( compgen -W '-h -q -V -v -y --help --quite
--version --verbose --yes' -- $cur ) )
+ else
+ COMPREPLY=( $( compgen -W 'install remove purge update
selfupdate update-all configure list \
+ apropos describe fetch fetch-all
fetch-missing index validate scanpackages \
+ build rebuild reinstall checksums
cleanup' -- $cur ) )
+ fi
+
+ return 0
+}
+complete $filenames -F _fink fink
+}
\ No newline at end of file
diff -uNr bash_completion/open.sh bash_completion-new/open.sh
--- bash_completion/open.sh 1969-12-31 18:00:00.000000000 -0600
+++ bash_completion-new/open.sh 2004-11-04 16:41:46.000000000 -0600
@@ -0,0 +1,106 @@
+#!/bin/bash
+
+#
+# Copyright (c) 2004, Lukas Westermann <contact AT openos DOT ch>
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# - Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# - Redistributions in binary form must reproduce the above
+# copyright notice, this list of conditions and the following
+# disclaimer in the documentation and/or other materials
+# provided with the distribution.
+# - The names of its contributors may not be used to endorse or
+# promote products derived from this software without specific
+# prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+
+#
+# Bash Auto-Completion for the NextStep command 'open'
+#
+# History
+# ----------------------------------
+# Version 1.0.0 - initial release
+# Version 1.0.1 - added test for availabilty (Darwin only
+# and check for open)
+# Version 1.0.2 - fixed problems with IFS for -a and -e
+# Version 1.0.3 - simplified availability check
+# Version 1.0.4 - fixed problem with spaces and completion
+#
+
+[ $UNAME = Darwin ] && have open && {
+_list_apps() {
+ local IFS=$'\n'
+ find '/Applications' "${HOME}"'/Applications' '/Developer/Applications'
-name "${1}*.app" -maxdepth 2 2>/dev/null
+ #TODO: MS Word and other carbon apps...HOW ???
+}
+
+_open()
+{
+
+ local cur prev IFS=$'\t\n'
+ COMPREPLY=()
+ cur=${COMP_WORDS[COMP_CWORD]}
+ prev=${COMP_WORDS[COMP_CWORD-1]}
+
+ if [[ $prev == -a ]]; then
+ local res ncur
+ ncur=$( echo "$cur" | sed -e 's/\\//g' 2>/dev/null )
+ res=$( _list_apps "${ncur}" | sed -e 's/.*\/\([^\/]*\)\.app/\1/' )
+ COMPREPLY=( $( compgen -W "${res}" -- "${ncur}" ) )
+ elif [[ $prev == -e ]]; then
+ _filedir '@(txt|doc|rtf|rtfd|pdf|png|jpg|gif)'
+ elif [[ $cur == -* ]]; then
+ local IFS=$' \t\n'
+ COMPREPLY=( $( compgen -W '-a -e' -- "$cur" ) )
+ else
+ local first="${COMP_WORDS[1]}" second="${COMP_WORDS[2]}"
+ if [[ $first == -a ]]; then
+ case "$second" in
+ QuickTime*)
+ _filedir '@(mp3|mpg|mpeg|avi|m4*|mov|alc)'
+ ;;
+ iTunes)
+ _filedir '@(mp3|m4*|ogg|alc)'
+ ;;
+ Safari|Mozilla|Camino|Opera|Firebird)
+ # TODO: complete from history/bookmarks ?
+ _filedir '@(htm|html|xhtm|xhtml|php|php3|php3|xml)'
+ ;;
+ VLC)
+ # TODO: complete for CD/DVD too...
+ _filedir '@(avi|mpg)'
+ ;;
+ BitTorrent*)
+ _filedir '@(torrent)'
+ ;;
+ *)
+ # others, complete all
+ _filedir
+ ;;
+ esac
+ else
+ _filedir
+ fi
+ fi
+
+}
+complete $filenames -F _open open
+}
\ No newline at end of file
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits