summaryrefslogtreecommitdiffstats
path: root/system/tty2gif/tty2gif.SlackBuild
diff options
context:
space:
mode:
author B. Watson <urchlay@slackware.uk>2023-02-14 02:52:47 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-02-18 10:07:11 +0700
commit731908f4258c46bc1c92bc622a7fba63c7481c8d (patch)
tree55fff2749796e4330205e15c2722be259055be4d /system/tty2gif/tty2gif.SlackBuild
parente6a9341ecacbfc37e68359ffd55dfca3477d4ee9 (diff)
downloadslackbuilds-731908f4258c46bc1c92bc622a7fba63c7481c8d.tar.gz
slackbuilds-731908f4258c46bc1c92bc622a7fba63c7481c8d.tar.xz
system/tty2gif: Fix PRINT_PACKAGE_NAME.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--system/tty2gif/tty2gif.SlackBuild13
1 files changed, 5 insertions, 8 deletions
diff --git a/system/tty2gif/tty2gif.SlackBuild b/system/tty2gif/tty2gif.SlackBuild
index 960e8b1d88..d243c728e1 100644
--- a/system/tty2gif/tty2gif.SlackBuild
+++ b/system/tty2gif/tty2gif.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
+
# Change source package name
if [ "$ARCH" = "x86_64" ]; then
SRCARCH="64bit"