Bugfixes in SlackBuild script

Signed-off-by: Robby Workman <rworkman@slackware.com>
This commit is contained in:
Patrick J. Volkerding 2018-05-29 19:14:08 -05:00 committed by Robby Workman
parent 90f437c324
commit cf6f58c4ef

View file

@ -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. # All rights reserved.
# #
# Redistribution and use of this script, with or without modification, is # Redistribution and use of this script, with or without modification, is
@ -27,9 +27,6 @@ VERSION=${VERSION:-2.83.0}
ARCH="noarch" ARCH="noarch"
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what # 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 # the name of the created package would be, and then exit. This information
# could be useful to other scripts. # could be useful to other scripts.
@ -38,6 +35,9 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0 exit 0
fi fi
TMP=${TMP:-/tmp}
PKG=$TMP/package-$PKGNAM
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG mkdir -p $TMP $PKG
@ -89,7 +89,7 @@ for page in manpages-l10n/*slackpkg.conf ; do
mkdir -p $PKG/usr/man/${manpage%%.*}/man5 mkdir -p $PKG/usr/man/${manpage%%.*}/man5
cp -av $page $PKG/usr/man/${manpage%%.*}/man5/${page#*.}.5 cp -av $page $PKG/usr/man/${manpage%%.*}/man5/${page#*.}.5
done done
for page in manpages-l10n/* ; do for page in manpages-l10n/*slackpkg ; do
manpage=$(basename $page) manpage=$(basename $page)
mkdir -p $PKG/usr/man/${manpage%%.*}/man8 mkdir -p $PKG/usr/man/${manpage%%.*}/man8
cp -av $page $PKG/usr/man/${manpage%%.*}/man8/${page#*.}.8 cp -av $page $PKG/usr/man/${manpage%%.*}/man8/${page#*.}.8