#!/bin/bash
# tar helper

# TODO strip off all unwanted files.

THIS_DIR=$(basename "`pwd`")
pushd .. > /dev/null
	(tar --exclude '*/.rc*' -czf "$THIS_DIR".tar.gz "$THIS_DIR" && echo "tar `pwd`/$THIS_DIR.tar.gz created" ) || {
		echo "TAR CREATION FAILED. Ask TAs for help.";
		exit 1
	}
exit 0
popd > /dev/null


