summaryrefslogtreecommitdiff
path: root/academic
diff options
context:
space:
mode:
authorDavid Somero <xgizzmo@slackbuilds.org>2010-05-19 02:30:29 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-19 02:30:29 -0400
commite1c66d268fb129d6ac53f8f81efafc8956754685 (patch)
tree20bc80cd502fd8d2ab0934bb490e9406d19f9ef4 /academic
parent85f2dab88fca7152a3c97ed580151e7d3f406076 (diff)
downloadslackbuilds-e1c66d268fb129d6ac53f8f81efafc8956754685.tar.gz
academic/glpk: Fixed for bash4.
Diffstat (limited to 'academic')
-rw-r--r--academic/glpk/glpk.SlackBuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/academic/glpk/glpk.SlackBuild b/academic/glpk/glpk.SlackBuild
index a3b6b2c573..25947c4329 100644
--- a/academic/glpk/glpk.SlackBuild
+++ b/academic/glpk/glpk.SlackBuild
@@ -61,12 +61,8 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# A file in the $PKG/usr/doc/$PRGNAM-$VERSION can be stripped,
# so we strip here, rather than immediately after make install.
-( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null || true
- 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/install
cat $CWD/slack-desc > $PKG/install/slack-desc