summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-05-19 02:39:46 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-19 02:39:46 -0400
commit6b5e827d0dbba705426ac22d2eedb4b40bac806c (patch)
treef3966761e3c7d570760f9da2182552a103dc0089
parent72730105e4c45f5448c31d945c7d64b3b2a68a80 (diff)
downloadslackbuilds-6b5e827d0dbba705426ac22d2eedb4b40bac806c.tar.gz
misc/chmlib-examples: Fixed for bash4.
-rw-r--r--misc/chmlib-examples/chmlib-examples.SlackBuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/misc/chmlib-examples/chmlib-examples.SlackBuild b/misc/chmlib-examples/chmlib-examples.SlackBuild
index 14246b6972..9c4a1450f0 100644
--- a/misc/chmlib-examples/chmlib-examples.SlackBuild
+++ b/misc/chmlib-examples/chmlib-examples.SlackBuild
@@ -78,12 +78,8 @@ make install DESTDIR=$PKG
# These are part of the chmlib package
rm -rf $PKG/usr/lib${LIBDIRSUFFIX} $PKG/usr/include
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
-)
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING* NEWS README $PKG/usr/doc/$PRGNAM-$VERSION