diff options
Diffstat (limited to 'source/ap')
-rwxr-xr-x | source/ap/man-pages/man-pages.SlackBuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/source/ap/man-pages/man-pages.SlackBuild b/source/ap/man-pages/man-pages.SlackBuild index c967ac3c1..87303f8ab 100755 --- a/source/ap/man-pages/man-pages.SlackBuild +++ b/source/ap/man-pages/man-pages.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=man-pages VERSION=${VERSION:-$(/bin/ls man-pages-*.tar.?z | head -n 1 | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} ARCH=noarch -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} # 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 @@ -44,16 +44,16 @@ mkdir -p $TMP $PKG cd $TMP rm -rf man-pages-$VERSION tar xvf $CWD/man-pages-$VERSION.tar.?z -tar xvf $CWD/man-pages-posix-2017-a.tar.?z +tar xvf $CWD/man-pages-posix-*.tar.?z echo "Fixing permissions..." -chown -R root:root man-pages-$VERSION man-pages-posix-2013-a -chmod -R a-s,u+rw,go+r-w man-pages-$VERSION man-pages-posix-2013-a +chown -R root:root man-pages-$VERSION man-pages-posix-* +chmod -R a-s,u+rw,go+r-w man-pages-$VERSION man-pages-posix-* find man-pages-$VERSION \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \+ -find man-pages-posix-2013-a \ +find man-pages-posix-* \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ @@ -69,8 +69,10 @@ cp -a man-pages-$VERSION/man* $PKG/usr/man # isn't likely to help most people and may lead to confusion. # The pthread manpages are the only POSIX ones that anyone # has requested saving. If I missed anything important, let me know. -cp -a man-pages-posix-2013-a/man0p/pthread.h.0p $PKG/usr/man/man3/pthread.h.3p -cp -a man-pages-posix-2013-a/man3p/pthread_* $PKG/usr/man/man3 +cp -a man-pages-posix-*/man0p/pthread.h.0p $PKG/usr/man/man3/pthread.h.3p +cp -a man-pages-posix-*/man3p/pthread_* $PKG/usr/man/man3 +# Adding this one to avoid getting ksh for sh: +cp -a man-pages-posix-*/man1p/sh.1p $PKG/usr/man/man1 # Compress the pages: echo "Compressing manpages..." @@ -99,7 +101,7 @@ rm -r $TEMPDIR mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION cp -a \ man-pages-$VERSION/{CONTRIBUTING,Changes,README,man-pages-${VERSION}.Announce,man-pages-${VERSION}.lsm} \ - man-pages-posix-2013-a/POSIX-COPYRIGHT \ + man-pages-posix-*/POSIX-COPYRIGHT \ $PKG/usr/doc/${PKGNAM}-$VERSION mkdir -p $PKG/install |