#!/bin/sh
cd /home2/anirudh/
cat /home2/anirudh/thesis/THESIS | sed "s/^\./thesis/g" > /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 -cvzf $HOME/others/backup/thesis.tgz thesis/
cp $HOME/others/backup/thesis.tgz /tmp/
#rm -f /tmp/EXCLUDE_LIST
cd thesis
