From 775310bf07e34137f86d467187836baea192c3d7 Mon Sep 17 00:00:00 2001 From: Patrick J Volkerding Date: Sat, 12 Oct 2019 17:56:55 +0000 Subject: Sat Oct 12 17:56:55 UTC 2019 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. --- source/ap/man-pages/man-pages.SlackBuild | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'source/ap/man-pages/man-pages.SlackBuild') 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 ) -- cgit v1.2.3-65-gdbad