diff options
Diffstat (limited to 'source/n/ipw2100-fw/ipw2100-fw.SlackBuild')
-rwxr-xr-x | source/n/ipw2100-fw/ipw2100-fw.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/source/n/ipw2100-fw/ipw2100-fw.SlackBuild b/source/n/ipw2100-fw/ipw2100-fw.SlackBuild index 6ef7bfb6..cede2987 100755 --- a/source/n/ipw2100-fw/ipw2100-fw.SlackBuild +++ b/source/n/ipw2100-fw/ipw2100-fw.SlackBuild @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash -# Copyright 2006, 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2006, 2008, 2009, 2018 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -20,14 +20,21 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) PKGNAM=ipw2100-fw VERSION=${VERSION:-1.3} ARCH=${ARCH:-fw} BUILD=${BUILD:-1} +# 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 "$PKGNAM-$VERSION-$ARCH-$BUILD.txz" + exit 0 +fi -CWD=$(pwd) TMP=${TMP:-/tmp} PKG=$TMP/package-${PKGNAM} rm -rf $PKG |