From 6f8d5bd58fe1344e4cdf90d96908904611431358 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Thu, 22 Apr 2010 00:40:52 -0500 Subject: Fixed stripping for bash4 and added comment to manpage compression --- template.SlackBuild | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/template.SlackBuild b/template.SlackBuild index 5b2c9b5..51727f7 100644 --- a/template.SlackBuild +++ b/template.SlackBuild @@ -96,17 +96,13 @@ make install DESTDIR=$PKG # Strip binaries and libraries - this can be done with 'make install-strip' # in many source trees, and that's usually acceptable if so, but if not, # use this: -( 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 || true -) +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true # Compress man pages # If the man pages are installed to /usr/share/man instead, you'll need to either # add the --mandir=/usr/man flag to configure or move them manually after the -# make install process is run. +# make install process is run. If there are no manpages, remove this... ( cd $PKG/usr/man find . -type f -exec gzip -9 {} \; for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -- cgit v1.2.3