]> git.lyx.org Git - lyx.git/blobdiff - lib/build-listerrors
revtex4-1.layout: update to latest REVTeX 4.1
[lyx.git] / lib / build-listerrors
index c8f371ef5492e7b1bfbc14a4059c77e682b4c055..9776b028d31d705cf3719e2a63428e4a6a08bd08 100755 (executable)
@@ -18,13 +18,28 @@ then
     lyx=../src/lyx
 else
     # Assumed to be on the path
-    lyx=lyx 
+    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
    mv $dir/examples/Literate.nw Literate.nw
    which notangle 2>/dev/null && notangle -Rbuild-script Literate.nw | sh
+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