From cf6f58c4ef284da2b605affa92954f9a2a60eaaf Mon Sep 17 00:00:00 2001 From: "Patrick J. Volkerding" Date: Tue, 29 May 2018 19:14:08 -0500 Subject: Bugfixes in SlackBuild script Signed-off-by: Robby Workman --- slackpkg.SlackBuild | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/slackpkg.SlackBuild b/slackpkg.SlackBuild index a68ee8a..05ebc50 100755 --- a/slackpkg.SlackBuild +++ b/slackpkg.SlackBuild @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash -# Copyright 2016 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2016, 2018 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,9 +27,6 @@ VERSION=${VERSION:-2.83.0} ARCH="noarch" BUILD=${BUILD:-1} -TMP=${TMP:-/tmp} -PKG=$TMP/package-$PKGNAM - # 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. @@ -38,6 +35,9 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then exit 0 fi +TMP=${TMP:-/tmp} +PKG=$TMP/package-$PKGNAM + rm -rf $PKG mkdir -p $TMP $PKG @@ -89,7 +89,7 @@ for page in manpages-l10n/*slackpkg.conf ; do mkdir -p $PKG/usr/man/${manpage%%.*}/man5 cp -av $page $PKG/usr/man/${manpage%%.*}/man5/${page#*.}.5 done -for page in manpages-l10n/* ; do +for page in manpages-l10n/*slackpkg ; do manpage=$(basename $page) mkdir -p $PKG/usr/man/${manpage%%.*}/man8 cp -av $page $PKG/usr/man/${manpage%%.*}/man8/${page#*.}.8 -- cgit v1.2.3