The following patch adds literate programming support to the new export code.
The files src/Literate.[Ch] can be removed from CVS.
To use it (with parsing of compilation errors), I put these line in lyxrc:
\converter nw tex "noweave -delay -index $$FName >$$OutName"
"parselog=listerrors g"
\converter nw Program "noweb_build $$FName"
"originaldir,parselog=listerrors g"
noweb_build is:
#!/bin/sh
cp $1 .
notangle -Rbuild-script `basename $1` | sh
If use_tempdir is false, then noweb_build can be just
#!/bin/sh
notangle -Rbuild-script $1 | sh
patch.gz