#!/bin/sh
cd /home2/anirudh/
rm -f /tmp/aa.thesis
find . -name ".*.swp" >> /tmp/aa.thesis
find . -name "main.[dp]*" >> /tmp/aa.thesis
find . -type d -name "confpaper" >> /tmp/aa.thesis
find . -type d -name "obi" >> /tmp/aa.thesis
find . -type d -name "misc" >> /tmp/aa.thesis
sed 's/^\..//g' /tmp/aa.thesis > /tmp/EXCLUDE_LIST
rm -f /tmp/aa.thesis
tar -X /tmp/EXCLUDE_LIST -cvf $HOME/public_html/temp/thesis.tar thesis/
ssh cocoa "\$HOME/bin/makethesis"
rm -f $HOME/public_html/temp/thesis.tar
