#!/bin/sh
if [ 0 -ne `id -u` ]
then
echo "This script must be run under root!"
exit 2
else
if [ $# -ne 1 ]
then
echo "You must set name of package!"
exit 1
else
echo "Creating package $1 and dependecies"
pkg_create -Rb `pkg_info|grep $1|awk '{print $1;}'`
exit 0
fi
fi