#!/bin/bash -p

# Usage: ./copy_to ["nbzachneu" | "ifipool"]
#
# Assumes we are in the drectory ANN/bin !


if [[ "$1" = "" ]]
then
	echo "Usage: copy_to <host>"
fi

mv ../log /tmp

cd ../..           # now, we are in the directory above ANN

if [[ "$1" == "nbzachneu" ]]
then
	ssh nbzachneu.in.tu-clausthal.de rm -rf ./Desktop/ANN
	scp -r ANN nbzachneu.in.tu-clausthal.de:/Users/zach/Desktop
else
	ssh ifipool302-07.in.tu-clausthal.de rm -rf ./ANN
	scp -r ANN ifipool302-07.in.tu-clausthal.de:/home/zach
fi

mv /tmp/log ANN/


