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

RE: Somebody with gcc knowledge here? (Was: termcap moodule problem on Cygwin )



> This happened to me, too. Somehow the Makefile calls the recursive
> `make's twice when collection the module object files to be put into
> stamp-modobjs.

Argh ...

Index: Src/mkmakemod.sh
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/mkmakemod.sh,v
retrieving revision 1.5
diff -u -r1.5 mkmakemod.sh
--- Src/mkmakemod.sh    2000/11/26 20:01:03     1.5
+++ Src/mkmakemod.sh    2001/01/31 09:55:19
@@ -132,7 +132,13 @@
            $the_subdir/$lastsub/*) ;;
            $the_subdir/*/*)
                lastsub=`echo $modfile | sed
's,^'$the_subdir'/,,;s,/[^/]*$,,'`
-               all_subdirs="$all_subdirs $lastsub"
+               case "$all_subdirs" in
+                   *" $lastsub"* ) ;;
+                   *" $lastsub "* ) ;;
+                   * )
+                       all_subdirs="$all_subdirs $lastsub"
+                   ;;
+               esac
                ;;
            $the_subdir/*)
                mddname=`echo $modfile | sed 's,^.*/,,;s,\.mdd$,,'`



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