#! /bin/sh

list_contents ()
{
  echo `gunzip -c $1 | wc -c` `zips.xnc $1 .gz`
}

a=`pwd`
case "$1" in
  listing) list_contents $2; exit 0;;
  copyout) gzip -c -d $2 $3 >$a/$3; exit 0;;
  pack) cat $3 | gzip -c >$2; exit 0;;
esac
