aboutsummaryrefslogtreecommitdiff
path: root/mkslackinfo
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-07 15:52:39 -0500
committerB. Watson <yalhcru@gmail.com>2022-02-07 15:52:39 -0500
commitb23e4b94d6dc6deaf13562d31b75f7201936ea6f (patch)
tree339a30fce2be1cd56a16e25063adc56b7a28823c /mkslackinfo
parentd0452ca21a267561bc051015d524db9948c215b6 (diff)
downloadsbostuff-b23e4b94d6dc6deaf13562d31b75f7201936ea6f.tar.gz
15.0 misc fixes
Diffstat (limited to 'mkslackinfo')
-rwxr-xr-xmkslackinfo9
1 files changed, 4 insertions, 5 deletions
diff --git a/mkslackinfo b/mkslackinfo
index 4c0effc..75e1f3f 100755
--- a/mkslackinfo
+++ b/mkslackinfo
@@ -296,7 +296,6 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -344,10 +343,10 @@ find $PKG -name perllocal.pod \
-o -name "*.bs" \
| xargs rm -f
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a <documentation> \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a <documentation> $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc