#!/bin/sh
PKG="$1$2.tar.gz"

tar -C $1 --exclude=$PKG -zcvf $PKG -P $1 > /dev/null 2>&1
