diff options
author | Patrick J. Volkerding <volkerdi@slackware.com> | 2018-05-29 19:14:08 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2018-05-29 19:15:08 -0500 |
commit | cf6f58c4ef284da2b605affa92954f9a2a60eaaf (patch) | |
tree | 319cae98ac220056e57dd2b5799caa5f26c4d4d3 | |
parent | 90f437c32494785cf467c46cdd465efe30e803f2 (diff) | |
download | slackpkg-cf6f58c4ef284da2b605affa92954f9a2a60eaaf.tar.xz |
Bugfixes in SlackBuild script
Signed-off-by: Robby Workman <rworkman@slackware.com>
-rwxr-xr-x | slackpkg.SlackBuild | 12 |
1 files 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 |