From c2b4d5ecdc9685e0d6bf3a1c43564edb302e568f Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 29 Aug 2010 23:53:47 -0500 Subject: development/ipython: Fixed permissions of docdir contents Thanks to vvoody. Signed-off-by: Robby Workman --- development/ipython/ipython.SlackBuild | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'development/ipython') diff --git a/development/ipython/ipython.SlackBuild b/development/ipython/ipython.SlackBuild index ad7617e087..5d215332a1 100644 --- a/development/ipython/ipython.SlackBuild +++ b/development/ipython/ipython.SlackBuild @@ -24,15 +24,13 @@ PKGNAM=ipython VERSION=${VERSION:-0.10} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} -# Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; arm*) ARCH=arm ;; - # Unless $ARCH is already set, use uname -m for all other archs: *) ARCH=$( uname -m ) ;; esac fi @@ -51,22 +49,17 @@ rm -rf $PKGNAM-$VERSION tar xvf $CWD/$PKGNAM-$VERSION.tar.gz cd $PKGNAM-$VERSION -# Make sure ownerships and permissions are sane: find . \ \( -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 {} \; -# Build and install: -python setup.py \ - install \ - --root="$PKG" +python setup.py install --root="$PKG" -# Install documentation: mkdir -p $PKG/usr/doc mv $PKG/usr/share/doc/ipython $PKG/usr/doc/ipython-$VERSION -chmod -R 0644 $PKG/usr/doc/$PKGNAM-$VERSION/* +find $PKG/usr/doc/$PKGNAM-$VERSION -type f -exec chmod 0644 {} \; mv $PKG/usr/share/man $PKG/usr find $PKG/usr/man -type f -exec gzip -9 {} \; -- cgit v1.2.3