mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-04 20:40:57 +02:00
Fix --enable-function-subdirs for new config.modules system.
This commit is contained in:
parent
0db6a3103f
commit
cfe1038ff1
6 changed files with 15 additions and 9 deletions
|
@ -1,5 +1,10 @@
|
|||
2000-12-04 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 13226: configure.in, Config/defs.mk, Config/installfns.sh,
|
||||
Config/uninstallfns.sh, Src/zsh.mdd: fix --enable-function-subdirs
|
||||
for config.modules system; make Completion get its own functions
|
||||
subdirectory; tidy up other related bits.
|
||||
|
||||
* 13220: Doc/Zsh/params.yo: mention problems with $# e.g. `$#-'
|
||||
in arithmetic.
|
||||
|
||||
|
|
|
@ -74,7 +74,6 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|||
INSTALL_DATA = @INSTALL_DATA@
|
||||
|
||||
# variables used in determining what to install
|
||||
FUNCTIONS_INSTALL = @FUNCTIONS_INSTALL@
|
||||
FUNCTIONS_SUBDIRS = @FUNCTIONS_SUBDIRS@
|
||||
|
||||
# flags passed to recursive makes in subdirectories
|
||||
|
|
|
@ -14,8 +14,7 @@ allfuncs="`cd $sdir_top; echo ${allfuncs}`"
|
|||
for file in $allfuncs; do
|
||||
if test -f $sdir_top/$file; then
|
||||
if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
|
||||
subdir="`echo $file | sed -e 's%/[^/]*$%%' \
|
||||
-e s%^Functions/%% -e s%^Completion/%%`"
|
||||
subdir="`echo $file | sed -e 's%/[^/]*$%%' -e 's%^Functions/%%'`"
|
||||
instdir="$fndir/$subdir"
|
||||
else
|
||||
instdir="$fndir"
|
||||
|
|
|
@ -24,7 +24,7 @@ case $fndir in
|
|||
for file in $allfuncs; do
|
||||
if test -f $sdir_top/$file; then
|
||||
if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
|
||||
file=`echo $file | sed -e 's%%^Completion/%' -e 's%%^Functions%'`
|
||||
file=`echo $file | sed -e 's%%^Functions/%'`
|
||||
rm -f $fndir/$file;
|
||||
else
|
||||
bfile="`echo $file | sed -e 's%^.*/%%'`"
|
||||
|
|
11
Src/zsh.mdd
11
Src/zsh.mdd
|
@ -45,10 +45,13 @@ zshpaths.h: Makemod $(CONFIG_INCS)
|
|||
echo '#define FPATH_DIR "'$(fndir)'"' >> zshpaths.h.tmp; \
|
||||
if test x$(FUNCTIONS_SUBDIRS) != x -a \
|
||||
x$(FUNCTIONS_SUBDIRS) != xno; then \
|
||||
fpath_tmp="`for f in $$FUNCTIONS_INSTALL; do \
|
||||
echo $$f | sed s%/.*%%; \
|
||||
done | sort | uniq`"; \
|
||||
fpath_tmp="`echo $$fpath_tmp | sed 's/ /\", \"/g'`"; \
|
||||
fpath_tmp="`grep ' functions=.' \
|
||||
$(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%/[^/]*$$%%'; \
|
||||
done | sort | uniq`; \
|
||||
fpath_tmp=`echo $$fpath_tmp | sed 's/ /\", \"/g'`; \
|
||||
echo "#define FPATH_SUBDIRS { \"$$fpath_tmp\" }" \
|
||||
>>zshpaths.h.tmp; \
|
||||
fi; \
|
||||
|
|
|
@ -1744,7 +1744,7 @@ for modfile in `cd ${srcdir}; echo */*.mdd */*/*.mdd`; do
|
|||
grep "^name=$name " ${CONFIG_MODULES}.old
|
||||
;;
|
||||
*) case "$link" in
|
||||
*\ *) eval 'link=`'$link'`'
|
||||
*\ *) eval "link=\`$link\`"
|
||||
;;
|
||||
esac
|
||||
case "${load}" in
|
||||
|
|
Loading…
Reference in a new issue