Shell script for compiling thesis