#! /bin/bash
#
# PURPOSE: Copy logs from the dorado1 directory to ~rob/logs.
#

. .profile
cd logs
if [ -a "$1" ] 
then
    cd $1
else
    mkdir $1
    cd $1
fi

for file in $AUVD/logs/$1/* 
do
    gzip -c $file > `basename $file`.gz
    echo `basename $file`.gz
    touch -r $file `basename $file`.gz
done

echo "cplogs Finished."

cd ~
