diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2000-12-04 12:02:28 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-12-04 12:02:28 +0000 |
commit | caa994e1e9e3ab73a0b9ee757a45c5896bf77864 (patch) | |
tree | 07305e6541feeb0c91e9957b559679f1fa51b61f | |
parent | 683cf32360315429e710e6b637d3126ea471e7b1 (diff) | |
download | zsh-caa994e1e9e3ab73a0b9ee757a45c5896bf77864.tar.gz zsh-caa994e1e9e3ab73a0b9ee757a45c5896bf77864.tar.xz zsh-caa994e1e9e3ab73a0b9ee757a45c5896bf77864.zip |
installfns bits
-rw-r--r-- | ChangeLog | 7 | ||||
-rwxr-xr-x | Config/installfns.sh | 2 | ||||
-rw-r--r-- | INSTALL | 39 |
3 files changed, 25 insertions, 23 deletions
diff --git a/ChangeLog b/ChangeLog index 4104b8888..0692d9fed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,13 @@ module, add echoti builtin and terminfo parameter in terminfo module. +2000-11-30 Peter Stephenson <pws@csr.com> + + * 13209: Makefile.in, configure.in, Config/funcinst.mk, + Config/installfns.sh, Config/uninstallfns.sh, Src/zsh.mdd, + Src/Modules/zftp.mdd, Src/Zle/complete.mdd, Src/Zle/zle.mdd: + function installation information is now in config.modules. + 2000-11-27 Bart Schaefer <schaefer@zsh.org> * 13203: Completion/Builtins/_zstyle: Add missing quote. diff --git a/Config/installfns.sh b/Config/installfns.sh index eb552b76d..54eb3feb4 100755 --- a/Config/installfns.sh +++ b/Config/installfns.sh @@ -4,7 +4,7 @@ fndir=$DESTDIR$fndir $sdir_top/mkinstalldirs $fndir || exit 1; -allfuncs="`grep ' functions=' ${dir_top}/config.modules | +allfuncs="`grep ' functions=.' ${dir_top}/config.modules | sed -e '/^#/d' -e '/ link=no/d' -e 's/^.* functions=//'`" allfuncs="`cd $sdir_top; echo ${allfuncs}`" diff --git a/INSTALL b/INSTALL index f64c6e805..88f43160b 100644 --- a/INSTALL +++ b/INSTALL @@ -277,28 +277,23 @@ override it with --enable-fndir=directory; --disable-fndir or setting of a default value for $fpath/$FPATH. Note the presence of $ZSH_VERSION (e.g. `3.1.7') to avoid clashes between versions of zsh. If you only run one version of zsh at once, installing into a common -directory such as /usr/local/share/zsh/functions is fine. - -You can control the functions which get installed by setting -FUNCTIONS_INSTALL, either when running configure (e.g. -`FUNCTIONS_INSTALL="..." configure ...') or when running `make install' or -`make install.fns'. It includes a list of files relative to either the -Completion or Functions subdirectories. By default, all the functions for -the Completion system will be installed (see the zshcompsys manual page), -plus those provide functions for the line editor, i.e. - FUNCTIONS_INSTALL='Core/* Base/* Builtins/* User/* Commands/* Debian/* Linux/* X/* Zle/* Prompts/* Misc/*' -and if the --enable-dynamic option was given, the functions in -Functions/Zftp, which require the zftp module to be available (see the -zshzftpsys manual page), will be included as well. Note, however, that -some of the functions in the User subdirectory are version- and -system-specific. - -There are also some miscellaneous functions with documentation in comments; -the complete set of functions can be installed with - FUNCTIONS_INSTALL='Core/* Base/* Builtins/* User/* Commands/* \ - Debian/* Linux/* X/* Misc/* Zftp/* Zle/*' -Note you should set this by hand to include `Zftp/*' if you have zftp -compiled into a statically linked shell. +directory such as /usr/local/share/zsh/functions is fine --- note, however, +that uninstallation is more likely to create problems in this case. + +The functions to be installed are controlled by config.modules. These +appear at the end of the line after `functions=': note that the rest of the +line is taken verbatim as shell command line text, i.e. no quoting is used +around the value as a whole and unquoted wildcards will be expanded. To +prevent any functions from being installed, either remove the `functions=' +entry or delete the reset of the line after it. + +Functions not specific to a particular module are listed on the zsh/main +line. None of these are crucial to shell operation, so you may choose not +to install them. For other modules, the functions will be installed if and +only if the module itself is installed. This will usually be what you +want; in particular, the zsh/complete and zsh/zftp modules are of much less +use without the associated functions. The functions listed with zsh/zle +are optional. however. You can also use the configure option --enable-function-subdirs to allow shell functions to be installed into subdirectories of the function |