-# Check for AMTARBALL variable.
-if [ -z $AMTARBALL ]; then
- AMTARBALL=$AMVER.tar.gz
-fi
-
-# Check for AMTARBALL file, if it's not there, create it.
-if [ ! -f ${AMTARBALL} ]; then
- mkdir ${AMVER}
+PKG_TARBALL=${AMVER}.tar.gz
+if [ ! -f "${PKG_TARBALL}" ]; then
+ mkdir ${AMVER} || exit 1