diff options
Diffstat (limited to 'system/supervisor')
-rw-r--r-- | system/supervisor/supervisor.SlackBuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/system/supervisor/supervisor.SlackBuild b/system/supervisor/supervisor.SlackBuild index 7b23d2013564d..75d08bdd3485c 100644 --- a/system/supervisor/supervisor.SlackBuild +++ b/system/supervisor/supervisor.SlackBuild @@ -26,6 +26,7 @@ PRGNAM=supervisor VERSION=${VERSION:-3.3.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=supervisor @@ -37,6 +38,14 @@ if [ -z "$ARCH" ]; then esac fi +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=${PKG:-$TMP/package-$SRCNAM} OUTPUT=${OUTPUT:-/tmp} @@ -76,4 +85,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |