#!/bin/bash

targ=$1

if [ ! -e "$targ.pdb.txt" ]; 
   then
	echo ""
	echo "===========";
	echo "The script creates tarball for starting model of "
	echo "refinement target and moves it to "
	echo "/www/download_area/CASP12/extra_experiments/";
	echo ""
	echo "USAGE: $0 <TARGET>";
	echo "<TARGET> name of refinement target"
	echo "============"
	echo ""
	exit 0;
fi

tarball="$targ.tar.gz"
tar -czf $tarball "$targ.pdb.txt"

mv $tarball /www/download_area/CASP12/extra_experiments/

