# We need to ensure a sane umask for the packages that will be created.
umask 022
+eval $(portageq envvar -v PKGDIR PORTAGE_PYM_PATH PORTAGE_TMPDIR ROOT)
+export PKGDIR PORTAGE_TMPDIR ROOT
+
# Make sure the xpak module is in PYTHONPATH
-export PYTHONPATH=$(portageq envvar PORTAGE_PYM_PATH)
+export PYTHONPATH=${PORTAGE_PYM_PATH}
export PORTAGE_DB=$(portageq vdb_path)
-export ROOT=$(portageq envvar ROOT)
-export ROOT=${ROOT%/}/
if [ -z "$1" ] || [ $1 == "-h" ] || [ $1 == "--help" ] ; then
echo "QUICKPKG ver 1.2"
exit 1
fi
-export PKGDIR=$(portageq envvar PKGDIR)
-export PORTAGE_TMPDIR=$(portageq envvar PORTAGE_TMPDIR)
-
source /sbin/functions.sh
# here we make a package given a little info