#!/bin/csh
# copy
# script for copying peaklists and prot file to cyana subdir
# and then copying the dir over to remote server 
# 
# usage: copy <dir> <remote server>      
#        
#
if ($#argv == 2) then
   set dir=$argv[1]
   set remote=$argv[2]
else
  echo
  echo "missing an argument! - terminating"
  echo "Usage: copy <dir> <remote server>"
  echo
  exit
endif

 if ($remote =~ dale) then
   echo "== copying directory from dale"
   scp -rp dale:/user/francis/znf42/8cyana/$dir .
  else if ($remote =~ cesg) then
   echo "== copying directory from  cesg"
   scp -rp cesg:/u/francis/znf42/8cyana/$dir .
  else if ($remote =~ brock) then
   echo "== copying directory to brock"
   scp -rp brock:/user/francis/znf42/8cyana/$dir . 
  else
    echo
    echo "Unknown remote server - terminating"
  exit
  endif

exit





