3 # Attempt to build listerrors (see examples/Literate.lyx) at build-time
5 # Author: Kayvan Sylvan <kayvan@sylvan.com>
11 echo 'echo "This is NOT the listerrors program."' >> $L
13 echo 'echo "Here was the problem when we tried to build listerrors:"' >> $L
22 for i in `echo $PATH | sed 's/:/ /g'`
40 echo "You must build lyx first to build listerrors."
44 notangle=`mywhich notangle`
48 fakeprogram "The NOWEB notangle was not found."
51 vncserver=`mywhich vncserver`
52 if [ -z "$vncserver" ]
54 # See if DISPLAY is set
58 fakeprogram "Could not export Literate.nw. Export needs GUI, fix lyx!"
60 $lyx --export tex examples/Literate.lyx
63 # Use the vncserver to make a silent export
64 if [ -r $HOME/.vnc/passwd ]
68 mkdir $HOME/.vnc > /dev/null 2>&1
70 touch $HOME/.vnc/passwd; chmod 700 $HOME/.vnc/passwd
72 $vncserver :10 -depth 16
75 $lyx --export tex examples/Literate.lyx
77 if [ $had_vnc_passwd -eq 0 ]
82 mv examples/Literate.tex Literate.nw
83 $notangle -Rbuild-script Literate.nw | sh