# compile Warp echo Compile warp echo Note that you can remove TreeSet.java if you have it already cd Warp javac *.java cd .. # compile and run sort and save output cd Sort echo Compile sort example javac *.java echo Run sort example java Test > output echo Run warp to get HTML pages for web site java -classpath ../Warp Warp file=output.html -html output > output.html java -classpath ../Warp Warp -html InsertSort.java Test.java > sort.html echo Run warp to get Javascript pages for web site java -classpath ../Warp Warp file=output.html -javascript output > output.js java -classpath ../Warp Warp -javascript InsertSort.java Test.java > sort.js cd .. echo Run warp on sort output to get Latex java -classpath Warp Warp -latex save@ Sort/output > Paper/sortoutput.tex echo Find and extract all warp stuff from sort example for Latex for i in `java -classpath Warp Warp warp@file= Sort/InsertSort.java ` do echo ...extract $i java -classpath Warp Warp file=$i -latex Sort/InsertSort.java > Paper/$i done echo Run warp on sort output for Javascript java -classpath Warp Warp -javascript save@ Sort/output > HTMLpaper/sortoutput.js echo Find and extract all warp stuff from sort example in Javascript for i in `java -classpath Warp Warp warp@file= Sort/InsertSort.java ` do j=HTMLpaper/`basename $i .tex`.js echo ...extract $i to $j java -classpath Warp Warp file=$i -javascript Sort/InsertSort.java > $j done echo Run warp to extract all of sort example for the appendix java -classpath Warp Warp -latex -all Sort/InsertSort.java > Paper/literalexample.tex echo Finished