about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2002-10-06 18:25:39 +0000
committerBart Schaefer <barts@users.sourceforge.net>2002-10-06 18:25:39 +0000
commitfbc08ff52c45e1e42a69507ff386b8de2e0457dc (patch)
tree1d2c2a3b40b04e05716b70681e0831df553d49ec
parent49e5f818ba0b52907e7ecede0a44569dbed8c09d (diff)
downloadzsh-fbc08ff52c45e1e42a69507ff386b8de2e0457dc.tar.gz
zsh-fbc08ff52c45e1e42a69507ff386b8de2e0457dc.tar.xz
zsh-fbc08ff52c45e1e42a69507ff386b8de2e0457dc.zip
17714: Fix to 17357, add module dependencies even if not adding autoloads.
-rw-r--r--Src/mkbltnmlst.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/mkbltnmlst.sh b/Src/mkbltnmlst.sh
index 8609cc0fd..ce987d328 100644
--- a/Src/mkbltnmlst.sh
+++ b/Src/mkbltnmlst.sh
@@ -20,7 +20,6 @@ trap "rm -f $1; exit 1" 1 2 15
 
 exec > $1
 
-echo "  if (emulation == EMULATE_ZSH) {"
 for x_mod in $x_mods; do
     modfile="`grep '^name='$x_mod' ' $CFMOD | sed -e 's/^.* modfile=//' \
       -e 's/ .*//'`"
@@ -41,6 +40,7 @@ for x_mod in $x_mods; do
     unset moddeps autobins autoinfixconds autoprefixconds autoparams
     unset automathfuncs
     . $srcdir/../$modfile
+    echo "  if (emulation == EMULATE_ZSH) {"
     for bin in $autobins; do
 	echo "    add_autobin(\"$bin\", \"$x_mod\");"
     done
@@ -56,12 +56,12 @@ for x_mod in $x_mods; do
     for mfunc in $automathfuncs; do
 	echo "    add_automath(\"$mfunc\", \"$x_mod\");"
     done
+    echo "  }"
     for dep in $moddeps; do
-	echo "    add_dep(\"$x_mod\", \"$dep\");"
+	echo "  add_dep(\"$x_mod\", \"$dep\");"
     done
     test "x$linked" = xno && echo "#endif"
 done
-echo "  }"
 
 echo
 done_mods=" "