#!/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 $@)
exitcode=$?

if (( $exitcode == 0 )); then
    IFS=$'\n'
    for cmd in $commands
    do
        eval $cmd;
    done
    unset IFS
fi

