summaryrefslogtreecommitdiffstats
path: root/network/pulse-sms
diff options
context:
space:
mode:
author B. Watson2023-02-14 08:42:39 +0100
committer Willy Sudiarto Raharjo2023-02-18 04:07:09 +0100
commitde4da69825fd557298b03f33124f4d04fe539c21 (patch)
tree067d99ebda252745f1f9c258c5bb7e48a264c988 /network/pulse-sms
parentff9f760c1b4eed386655e16e2dc051303cb1d61a (diff)
downloadslackbuilds-de4da69825fd557298b03f33124f4d04fe539c21.tar.gz
network/pulse-sms: 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/pulse-sms')
-rw-r--r--network/pulse-sms/pulse-sms.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/network/pulse-sms/pulse-sms.SlackBuild b/network/pulse-sms/pulse-sms.SlackBuild
index cee263b29c..a7b99df6f1 100644
--- a/network/pulse-sms/pulse-sms.SlackBuild
+++ b/network/pulse-sms/pulse-sms.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}
@@ -46,6 +38,11 @@ if [ -z "$ARCH" ]; then
ARCH=$( uname -m )
fi
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
# Upstream only has binary support for x86_64 at present.
if [ "$ARCH" = "x86_64" ]; then
DEBARCH="amd64"