#!/usr/bin/env bash
#Swork - the project management utility.
#Author: Tim Henderson
#Contact: tim.tadh@gmail.com,
    #or via EECS Department of Case Western Reserve University, Cleveland Ohio
#Copyright: 2011 All Rights Reserved, Licensed under the GPLv2, see LICENSE

commands=$(/usr/bin/python -m swork $@)
if (( $? > 1 )); then
    echo "swork did not succeed, see error message and usage info."
    return 1;
fi

IFS=$'\n'
for cmd in $commands
do
#     echo $cmd;
    eval $cmd;
done
unset IFS

# echo "... now start your work!"
