.PHONY: raw logon milan trial submissions negation tngo

raw:
	tar zpScvf public/raw15.tgz \
	  --transform='s@^@epe/@' \
	  negation/training/raw.txt negation/development/raw.txt \
	  negation/training/raw.tt negation/development/raw.tt \
	  negation/training/gold.*sem+ negation/development/gold.*sem+ \
	  negation/evaluation/raw.txt negation/evaluation/raw.tt \
	  negation/evaluation/gold.*sem+ \
	  events/training/*.txt events/development/*.txt \
	  events/training/*.tt events/development/*.tt \
	  events/evaluation/*.txt events/evaluation/*.tt \
	  opinion/training/*.txt opinion/development/*.txt \
	  opinion/training/*.tt opinion/development/*.tt \
	  opinion/evaluation/*.txt opinion/evaluation/*.tt \
	  README.raw.txt

logon:
	tar zpSxvf /tmp/logon.tgz
	tar zpScvf public/logon.tgz \
	  --transform='s@^@epe/@' \
	  logon README.logon.txt

trial:
	tar zpScvf trial/submissions.tgz \
	  --exclude "*.conll" --exclude "*.dsynt" \
	  --transform='s@^@epe/@' \
	  trial/prague trial/stanford trial/szeged \
	  trial/peking \
	  trial/barcelona/170518/00 trial/barcelona/170518/01

milan:
	tar zpScvf /ltg/www/emmtee/oe/milan.tgz \
	  --exclude "*.svn" --exclude "*.conll" --exclude "*.dsynt" \
	  {events,opinion}/*/*.txt {events,opinion}/*/udpipe \
	  negation/*/*.txt negation/*/udpipe.{conllu,epe}

submissions:
#	tar zpScvf public/submissions/ecnu.tgz --exclude "*/tmp*" \
#	  --transform='s@^@epe/@' \
#	  submissions/ecnu;
#	tar zpScvf public/submissions/uw.tgz --exclude "*/tmp*" \
#	  --transform='s@^@epe/@' \
#	  submissions/uw;
#	tar zpScvf public/submissions/upf.tgz --exclude "*/tmp*" \
#	  --exclude "*.conll" --exclude "*.dsynt" --exclude "*.bpa" \
#	  --transform='s@^@epe/@' \
#	  submissions/upf;
#	tar zpScvf public/submissions/prague.tgz --exclude "*/tmp*" \
#	  --transform='s@^@epe/@' \
#	  submissions/prague;
#	tar zpScvf public/submissions/szeged.tgz --exclude "*/tmp*" \
#	  --transform='s@^@epe/@' \
#	  submissions/szeged;
#	tar zpScvf public/submissions/stanford-paris.tgz --exclude "*/tmp*" \
#	  --transform='s@^@epe/@' \
#	  submissions/stanford-paris;
#	tar zpScvf public/submissions/paris-stanford.tgz \
#	  --exclude "*/tmp*" --exclude "*.sdp"\
#	  --transform='s@^@epe/@' \
#	  submissions/paris-stanford;
#	tar zpScvf public/submissions/oxford.tgz --exclude "*/tmp*" \
#	  --transform='s@^@epe/@' \
#	  submissions/oxford;
	tar zpScvf public/submissions/peking.tgz \
	  --exclude "*/tmp*" --exclude "*.sdp"\
	  --exclude "*/sherlock.log" \
	  --exclude "*/*.\*sem" --exclude "*.score" \
	  --transform='s@^@epe/@' \
	  submissions/peking;

negation:
	tar zpScvf public/negation.tgz \
	  --exclude "*~" --exclude "*.svn*" \
	  --transform='s@^@epe/@' \
	  submissions/*/sherlock.log \
	  submissions/*/??/negation/{development,evaluation}/*.score \
	  submissions/*/??/negation/{development,evaluation}/sherlock.* \
	  submissions/*/??/negation/{development,evaluation}/gold.\*sem

tngo:
	tar zpScvf public/tngo.tgz \
	  --exclude "*~" --exclude "*.svn*" \
	  --transform='s@^@epe/@' \
	  tngo