about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2002-10-06 18:26:47 +0000
committerBart Schaefer <barts@users.sourceforge.net>2002-10-06 18:26:47 +0000
commitff66dfd9e26c461968c5fec62b0b7f4dab282ca0 (patch)
treec905ebf21c2a1aea0334e52f61d8d6e1d3e047e2
parenta4f295d302707b757264b7101785a36d3c5cbefd (diff)
downloadzsh-ff66dfd9e26c461968c5fec62b0b7f4dab282ca0.tar.gz
zsh-ff66dfd9e26c461968c5fec62b0b7f4dab282ca0.tar.xz
zsh-ff66dfd9e26c461968c5fec62b0b7f4dab282ca0.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=" "