summaryrefslogtreecommitdiffstats
path: root/source/ap
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2019-10-12 17:56:55 +0000
committer Eric Hameleers <alien@slackware.com>2019-10-13 08:59:48 +0200
commit775310bf07e34137f86d467187836baea192c3d7 (patch)
tree4717611818897b421e162e4801f93729221c1340 /source/ap
parent23e8bbd2ccaaba30353a5cda8d73f33fdaafce20 (diff)
downloadcurrent-775310bf07e34137f86d467187836baea192c3d7.tar.gz
current-775310bf07e34137f86d467187836baea192c3d7.tar.xz
Sat Oct 12 17:56:55 UTC 201920191012175655
ap/man-pages-5.03-noarch-1.txz: Upgraded. d/binutils-2.33.1-x86_64-1.txz: Upgraded. Shared library .so-version bump. d/oprofile-1.3.0-x86_64-3.txz: Rebuilt. Recompiled against binutils-2.33.1. l/vte-0.58.2-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/ap')
-rwxr-xr-xsource/ap/man-pages/man-pages.SlackBuild15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/ap/man-pages/man-pages.SlackBuild b/source/ap/man-pages/man-pages.SlackBuild
index 643be6153..09bf90cbd 100755
--- a/source/ap/man-pages/man-pages.SlackBuild
+++ b/source/ap/man-pages/man-pages.SlackBuild
@@ -85,13 +85,18 @@ gzip -9 $PKG/usr/man/man*/*.*
# If a man page exists in some other package, assume that's the
# newer, better version:
echo "Pruning manpages found in other packages..."
+TEMPDIR=$(mktemp -d)
+chmod 700 $TEMPDIR
+( cd $PKG ; /bin/ls usr/man/man*/*.gz | sort > $TEMPDIR/man-pages-pages )
+( cd /var/log/packages
+ GLOBIGNORE="$(/bin/ls man-pages-*)"
+ cat * | grep usr/man | sort | uniq > $TEMPDIR/other-packages-pages
+ unset GLOBIGNORE
+)
( cd $PKG
- for file in usr/man/man*/*.gz ; do
- if grep -l $file /var/log/packages/* | grep -v var/log/packages/man-pages ; then
- rm -f --verbose $file
- fi
- done
+ comm -12 $TEMPDIR/man-pages-pages $TEMPDIR/other-packages-pages | xargs rm --verbose
)
+rm -r $TEMPDIR
# Some of the posix pages don't display correctly without this
( cd $PKG/usr/man ; ln -s man3 man3p )