diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-04 15:59:49 +0200 |
---|---|---|
committer | Heinz Wiesinger <pprkut@slackbuilds.org> | 2021-07-17 21:55:13 +0200 |
commit | c65110c590322a729019d87f7433d45459305a02 (patch) | |
tree | f59892c527e76c827fad99063eb502fb7975ccfa /graphics | |
parent | e06676fc3fde17449507cd10d5de959e2a850fae (diff) | |
download | slackbuilds-c65110c590322a729019d87f7433d45459305a02.tar.gz |
graphics/VariCAD: Fix support for PRINT_PACKAGE_NAME
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/VariCAD/VariCAD.SlackBuild | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/graphics/VariCAD/VariCAD.SlackBuild b/graphics/VariCAD/VariCAD.SlackBuild index 7110d23a66..8c0c0bbc22 100644 --- a/graphics/VariCAD/VariCAD.SlackBuild +++ b/graphics/VariCAD/VariCAD.SlackBuild @@ -47,18 +47,6 @@ case "$( uname -m )" in *) ARCH=$( uname -m ) ;; esac -# 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} - if [ "$ARCH" = "i486" ]; then SRCARCH="i586" PKGARCH="i586" @@ -70,6 +58,18 @@ else exit 1 fi +# 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-$PKGVERSION-$PKGARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + set -e rm -rf $PKG |