#!/bin/sh texfile=presentation_file outjunk=some_output destination=../../matlab rm -rf $texfile/* latex2html --bottom_navigation --index_in_navigation --antialias --local_icons \ --show_section_numbers $texfile.tex > $outjunk 2>&1 [ -d $destination ] || mkdir $destination cp -r $texfile/* $destination cp -r $texfile.tex $destination.tex chmod 755 $destination pushd $destination chmodr 755 644 popd