#!/bin/sh

#  cpz <file> <dir> copies and compresses <file> to <dir>. <dir> will
#  contain a compress version of <file>.

#  Used for copying man pages

# check for 2 arguments here

if [ ! -f $1 ]; then
   exit
fi

if [ ! -d $2 ]; then
   exit
fi

cp $1 $2
(cd $2; compress $1)

