On Mon, 8 Jan 2001, Dekel Tsur wrote:
> On Sun, Jan 07, 2001 at 01:09:37PM -0800, Kayvan A. Sylvan wrote:
> > > ./build-listerrors .
> > > ----------------------------------------
> > > Textclass error
> > > The document uses an unknown textclass "literate-article".
> > > LyX will not be able to produce output correctly.
> > > ----------------------------------------
> > > About to handle -x 'buffer-export literate'
> > > ----------------------------------------
> > > Can not export file
> > > No information for exporting to NoWeb
> > >
> > > ----------------------------------------
> > > We are done!
> >
> > Do you have noweb installed?
>
> It appears that he doesn't.
> The following patch will exit from build-listerrors if noweb is not installed
> (so you won't get this strange error messages).
>
You may want to duplicate the 'touch listerrors' line, for the same reason
(make expects it - otherwise the script will be rerun everytime you run
make, and make install tries to copy it, so it should be tested as well).
A few weeks ago I suggested adding to the second branch of the conditional
(when the lyx --export fails), something to the effect of:
Index: lib/build-listerrors
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/build-listerrors,v
retrieving revision 1.6
diff -u -r1.6 build-listerrors
--- lib/build-listerrors 2000/10/23 12:16:03 1.6
+++ lib/build-listerrors 2000/12/06 20:08:56
@@ -31,6 +31,9 @@
# you don't have noweb installed so we'll produce a dummy file
# just so make doesn't keep trying to output it.
touch listerrors
+ # tell the user nothing bad happened
+ echo
+ echo "LyX did not detect NoWeb support. Proceeding normally."
fi
exit 0
===================================================================
But if you add the test for the textclass then we should perhaps say
something like (in the case where the --export failed):
"LyX failed to use NoWeb. Please check your installation. Proceeding
Normally"
Just to reassure the user that everything else works even if he has some
problems with noweb.
Lior.