The following make problem happens in Solaris. Seems that the version of /bin/sh does not like empty "for i in ... do ... done" constructs. Looking at the tex2lyx Makefile.am, it looks like the "graphics_linked_files" part is not necessary.
Also, the solaris "ln" does not really work as expected with "ln -sf". The patch is attached. Making all in tex2lyx make[3]: Entering directory `/remote/meth_lab2/ksylvan/lyx-debug/src/tex2lyx' for i in FloatList.C Floating.C boost.C counters.C lyxlayout.h lyxlayout.C lyxtextclass.C lyxtextclass.h lyxlex.C lyxlex_pimpl.C; do \ ln -sf "../../../lyx/src/$i" . ; \ done ; \ for i in ; do \ ln -sf "../../../lyx/src/graphics/$i" . ; \ done /bin/bash: -c: line 1: syntax error near unexpected token `;' /bin/bash: -c: line 1: `for i in FloatList.C Floating.C boost.C counters.C lyxlayout.h lyxlayout.C lyxtextclass.C lyxtextclass.h lyxlex.C lyxlex_pimpl.C; do ln -sf "../../../lyx/src/$i" . ; done ; for i in ; do ln -sf "../../../lyx/src/graphics/$i" . ; done' make[3]: *** [link_files] Error 2 make[3]: Leaving directory `/remote/meth_lab2/ksylvan/lyx-debug/src/tex2lyx' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/remote/meth_lab2/ksylvan/lyx-debug/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/remote/meth_lab2/ksylvan/lyx-debug/src' make: *** [all-recursive] Error 1 -- Kayvan A. Sylvan | Proud husband of | Father to my kids: Sylvan Associates, Inc. | Laura Isabella Sylvan | Katherine Yelena (8/8/89) http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)
Index: src/tex2lyx/ChangeLog =================================================================== RCS file: /cvs/lyx/lyx-devel/src/tex2lyx/ChangeLog,v retrieving revision 1.17 diff -u -r1.17 ChangeLog --- src/tex2lyx/ChangeLog 2003/07/27 00:39:34 1.17 +++ src/tex2lyx/ChangeLog 2003/07/27 06:56:40 @@ -1,3 +1,8 @@ +2003-07-27 Kayvan Sylvan <[EMAIL PROTECTED]> + + * Makefile.am: Remove reference to graphics_linked_files, + make the link construct more portable. + 2003-07-27 Angus Leeming <[EMAIL PROTECTED]> * tex2lyx.C: add Debug::ANY hack. Index: src/tex2lyx/Makefile.am =================================================================== RCS file: /cvs/lyx/lyx-devel/src/tex2lyx/Makefile.am,v retrieving revision 1.8 diff -u -r1.8 Makefile.am --- src/tex2lyx/Makefile.am 2003/07/27 00:39:34 1.8 +++ src/tex2lyx/Makefile.am 2003/07/27 06:56:40 @@ -48,11 +48,8 @@ link_files: for i in $(linked_files); do \ - ln -sf "$(top_srcdir)/src/$$i" . ; \ - done ; \ - for i in $(graphics_linked_files); do \ - ln -sf "$(top_srcdir)/src/graphics/$$i" . ; \ + rm -f $$i; ln -s "$(top_srcdir)/src/$$i" . ; \ done rm_link_files: - rm -f $(linked_files) $(graphics_linked_files) + rm -f $(linked_files)