zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: PATCH: Re: Functions moved
Date: Mon, 2 Apr 2001 16:35:33 +0200 (MET DST)	[thread overview]
Message-ID: <200104021435.QAA12732@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: =?iso-8859-1?q?Oliver=20Kiddle?='s message of Mon, 2 Apr 2001 15:01:41 +0100 (BST)


Oliver Kiddle wrote:

> ...
>
> > - Configure-stuff: I hope to have got everything right so that one
> >   directory-level from the completion directories is removed on
> >   installation (all Zsh/*/* functions are installed under Zsh/).  We
> 
> A few things aren't quite right. I did configure with
> --enable-function-subdirs. I got some old directories (User, Bsd,
> Builtins) - we should be able to remove them.

You probably was a bit faster than me removing the .distfiles in those 
directories and the directories themselves.  Or maybe you aren't using 
cvs update with -P (I think it was -P).  But anyway.  I've now
discovered why Peter had to type all thos directories in
complete.mmd.  They are used when building zshpaths.h... the $fpath
problem.

The patch below should fix this and...

> compinit, compdump etc
> got placed in their very own subdirectory and $fpath is wrong.

this.  Once you've made zshpaths.h be re-build (and config.modules on
which building zshpaths.h relies).

> Should I
> not have used --enable-function-subdirs?

As I tried to write, this should have worked.


Bye
 Sven

P.S.: It seems that I also forgot to cvs add the two files:
       Completion/Unix/Type/_dict_words and Functions/Compctl/.distfiles.


Index: Config/installfns.sh
===================================================================
RCS file: /cvsroot/zsh/zsh/Config/installfns.sh,v
retrieving revision 1.5
diff -u -r1.5 installfns.sh
--- Config/installfns.sh	2001/04/02 13:04:05	1.5
+++ Config/installfns.sh	2001/04/02 14:32:48
@@ -15,6 +15,10 @@
   if test -f $sdir_top/$file; then
     if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
       case "$file" in
+      Completion/comp*)
+        subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
+        instdir="$fndir/Completion"
+        ;;
       Completion/*)
         subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
         instdir="$fndir/$subdir"
Index: Src/zsh.mdd
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/zsh.mdd,v
retrieving revision 1.6
diff -u -r1.6 zsh.mdd
--- Src/zsh.mdd	2000/12/04 19:21:09	1.6
+++ Src/zsh.mdd	2001/04/02 14:32:48
@@ -49,7 +49,7 @@
 	    $(dir_top)/config.modules | sed -e '/^#/d' -e '/ link=no/d' \
 	    -e 's/^.* functions=//'`"; \
 	    fpath_tmp=`for f in $$fpath_tmp; do \
-	      echo $$f | sed -e 's%^Functions/%%' -e 's%/[^/]*$$%%'; \
+	      echo $$f | sed -e 's%^Functions/%%' -e 's%/[^/]*$$%%' -e 's%/\*%%'; \
 	    done | sort | uniq`; \
 	    fpath_tmp=`echo $$fpath_tmp | sed 's/ /\", \"/g'`; \
 	    echo "#define FPATH_SUBDIRS { \"$$fpath_tmp\" }" \

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


                 reply	other threads:[~2001-04-02 14:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200104021435.QAA12732@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).