summaryrefslogtreecommitdiffstats
path: root/system/uif2iso/uif2iso.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/uif2iso/uif2iso.SlackBuild')
-rw-r--r--system/uif2iso/uif2iso.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/system/uif2iso/uif2iso.SlackBuild b/system/uif2iso/uif2iso.SlackBuild
index 3c80bf8c12..81c94d07a0 100644
--- a/system/uif2iso/uif2iso.SlackBuild
+++ b/system/uif2iso/uif2iso.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for uif2iso
-# Copyright 2009 David Woodfall <dave@dawoodfall.net>
+# Copyright 2009 David Woodfall <dave@slackbuilds.org>
# All rights reserved.
#
# aka dive in #slackware on freenode.net
@@ -26,10 +26,13 @@
# YOUR DATA IS DESTROYED, YOUR HOUSE BURNS DOWN OR YOUR DOG RUNS OFF.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=uif2iso
VERSION=${VERSION:-0.1.7c}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -39,7 +42,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# 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}
@@ -92,4 +102,4 @@ mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE