aboutsummaryrefslogtreecommitdiff
path: root/python/css-parser
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-02-14 01:34:25 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 10:07:00 +0700
commiteda812b4cb696df23a7bc54ba8f40893bef82c38 (patch)
tree8db96a606662ce1abf6259521e106b8e587caa00 /python/css-parser
parent8c61a61a0bf79801a075e556593a58229c054a12 (diff)
downloadslackbuilds-eda812b4cb696df23a7bc54ba8f40893bef82c38.tar.xz
python/css-parser: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/css-parser')
-rw-r--r--python/css-parser/css-parser.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/python/css-parser/css-parser.SlackBuild b/python/css-parser/css-parser.SlackBuild
index dca5b5bbbe76..c2b1d9870bc5 100644
--- a/python/css-parser/css-parser.SlackBuild
+++ b/python/css-parser/css-parser.SlackBuild
@@ -30,14 +30,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}
@@ -50,6 +42,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