3 # Attempt to build listerrors (see examples/Literate.lyx) at build-time
5 # Author: Kayvan Sylvan <kayvan@sylvan.com>
7 # Assume notangle is on the path
20 # Assumed to be on the path
24 if [ -z "`grep literate-article textclass.lst`" ]
30 $lyx --export literate
$dir/examples
/Literate.lyx
31 # if no literate support stuff is installed nothing will be output
32 if [ -f $dir/examples
/Literate.nw
]
34 mv $dir/examples
/Literate.nw Literate.nw
35 which notangle
2>/dev
/null
&& notangle
-Rbuild-script Literate.nw | sh
37 # you don't have noweb installed so we'll produce a dummy file
38 # just so make doesn't keep trying to output it.
40 # tell the user nothing bad happened
42 echo "LyX did not detect NoWeb support. Proceeding normally."