summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author B. Watson2023-02-14 08:52:21 +0100
committer Willy Sudiarto Raharjo2023-02-18 04:07:11 +0100
commite6a9341ecacbfc37e68359ffd55dfca3477d4ee9 (patch)
tree4595d8ca11e9931f4eac0da2bce7e7e0814ef13d
parentf267befb625f7e86f73584bd6df40df610ab114e (diff)
downloadslackbuilds-e6a9341ecacbfc37e68359ffd55dfca3477d4ee9.tar.gz
system/ttf-bitstream-vera: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild b/system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild
index f7fc1aa2d8..f43744a693 100644
--- a/system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild
+++ b/system/ttf-bitstream-vera/ttf-bitstream-vera.SlackBuild
@@ -30,20 +30,17 @@ 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}
ARCH=noarch # they're fonts, dummy
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
set -eu
rm -rf $PKG