aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-02-14 01:29:55 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 10:06:58 +0700
commit75ccfdf14d6d4c23d07b311372b400855b55fab2 (patch)
tree0b6aa1159386c1f5b37044ea458df73e97361076 /network
parent406b9386364f8846ef1ceb68e143bf78a37ab04a (diff)
downloadslackbuilds-75ccfdf14d6d4c23d07b311372b400855b55fab2.tar.xz
network/PyRSS2Gen: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/PyRSS2Gen/PyRSS2Gen.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/network/PyRSS2Gen/PyRSS2Gen.SlackBuild b/network/PyRSS2Gen/PyRSS2Gen.SlackBuild
index b978bff19934..25f029f26118 100644
--- a/network/PyRSS2Gen/PyRSS2Gen.SlackBuild
+++ b/network/PyRSS2Gen/PyRSS2Gen.SlackBuild
@@ -13,14 +13,6 @@ BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# 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=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -33,6 +25,11 @@ if [ -z "$ARCH" ]; then
esac
fi
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
set -e
rm -rf $PKG