]> git.lyx.org Git - lyx.git/blobdiff - lib/build-listerrors
fix typo that put too many include paths for most people
[lyx.git] / lib / build-listerrors
index 366600447dbc969b1b9a72e8aa74475a1b8f5961..392a9cf31f93a01f8288a98847703927d0c7b474 100755 (executable)
@@ -21,7 +21,13 @@ else
     lyx=lyx 
 fi
 
-$lyx --export nw $dir/examples/Literate.lyx
+if [ -z "`grep literate-article textclass.lst`" ]
+then
+    touch listerrors
+    exit 0
+fi
+
+$lyx --export literate $dir/examples/Literate.lyx
 # if no literate support stuff is installed nothing will be output
 if [ -f $dir/examples/Literate.nw ]
 then
@@ -31,6 +37,9 @@ else
    # 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