#!/bin/sh
if [ "$1" != "" ]; then
  pkg=`basename $1`
  if [ -d $pkg ]; then
    tar cvf - $pkg | gzip > $pkg.tgz
  fi
fi
