added bash script for automating multi-step compilation