Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Re: mkbltnmlst.sh sources directories.

This patch makes mkbltnmlist.sh warn about non-existent modules instead
of trying to source a directory.  This should be applied instead of 9101
(but it's quite harmless if both are applied by accident).

Btw, I realised that a more likely cause of the non-existent module
problem would be applying my alias modules patch and failing to run the
.preconfig script as the blurb mentioned.  This would have the effect
of putting the alias modules into xmods.conf but not actually being able
to build them.


diff -cr ../zsh-/Src/mkbltnmlst.sh ./Src/mkbltnmlst.sh
*** ../zsh-/Src/mkbltnmlst.sh	Thu Dec 16 10:14:15 1999
--- ./Src/mkbltnmlst.sh	Fri Dec 17 13:41:44 1999
*** 21,26 ****
--- 21,31 ----
  for x_mod in $x_mods; do
      q_x_mod=`echo $x_mod | sed 's,Q,Qq,g;s,_,Qu,g;s,/,Qs,g'`
+     eval "modfile=\$modfile_$q_x_mod"
+     if test "x$modfile" = x; then
+ 	echo >&2 "WARNING: $XMODCF lists non-existent module \`$x_mod' (ignored)"
+ 	continue
+     fi
      case "$bin_mods" in
      *" $x_mod "*)
          echo "/* linked-in known module \`$x_mod' */"
*** 31,37 ****
          echo "/* non-linked-in known module \`$x_mod' */"
-     eval "modfile=\$modfile_$q_x_mod"
      unset moddeps autobins autoinfixconds autoprefixconds autoparams
      unset automathfuncs
      . $srcdir/../$modfile
--- 36,41 ----

Messages sorted by: Reverse Date, Date, Thread, Author