#! /bin/zsh

remotedir=`pwd | perl -wlpe 's|/Users/sagami|sharedhome|'`
cmd()
{
case `hostname` in
    sagami-ubuntu)
	    echo local;
	    exec "$@"
	    ;;
    *)
	    echo ssh : dir is $remotedir;
	    ssh 10.211.55.101 "cd $remotedir; $@";
	    ;;
esac
}


cmd make -f Makefile "$@"
