#!/bin/sh

[ ! $1 ] && exit

cd packages

[ ! -d ${1} ] && exit

tar -c -f ${1}.tar ${1}/
sync
gzip ${1}.tar
sync
tgz2pet ${1}.tar.gz
sync

cd ..
mv -f ./packages/${1}.pet ../pet-packages/
sync

echo "${1}.pet now in ../pet-packages"
