summaryrefslogtreecommitdiffstats
path: root/sendxmpp
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2007-03-27 13:58:45 +0000
committer Eric Hameleers <alien@slackware.com>2007-03-27 13:58:45 +0000
commit63b3720653e16b259a8ea4266c2ba4deca5726d9 (patch)
treed28f713c2f32c46291d526feb022200f8b8beb5a /sendxmpp
parentd0346372e97e67aede05610b8ff7b57983705ebf (diff)
downloadasb-63b3720653e16b259a8ea4266c2ba4deca5726d9.tar.gz
asb-63b3720653e16b259a8ea4266c2ba4deca5726d9.tar.xz
Fix the man page location
Diffstat (limited to 'sendxmpp')
-rwxr-xr-xsendxmpp/build/sendxmpp.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/sendxmpp/build/sendxmpp.SlackBuild b/sendxmpp/build/sendxmpp.SlackBuild
index 1366aa36..f8f8a319 100755
--- a/sendxmpp/build/sendxmpp.SlackBuild
+++ b/sendxmpp/build/sendxmpp.SlackBuild
@@ -135,8 +135,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/*
-# Compress the man page(s):
-find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
+# Move and compress the man page(s):
+[ -d $PKG/usr/share/man ] && \
+ mv $PKG/usr/share/man $PKG/usr/ && rmdir $PKG/usr/share || true
+[ -d $PKG/usr/man ] && \
+ find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
# Remove Perl special files and empty directories:
cd $PKG