summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Erik Hanson <erik@slackbuilds.org>2010-05-17 00:17:54 -0500
committer Erik Hanson <erik@slackbuilds.org>2010-05-17 00:17:54 -0500
commitcf696068049aab45134a8cbb24fd02bc38ede47c (patch)
treef2f9534f5dd277e651bea276aafbac23927c4675
parenta59ea18100def174f7545135ba659d01ffdd9696 (diff)
downloadtemplates-cf696068049aab45134a8cbb24fd02bc38ede47c.tar.gz
templates-cf696068049aab45134a8cbb24fd02bc38ede47c.tar.xz
Do away with 2 pointless subshells.
-rw-r--r--template.SlackBuild18
1 files changed, 7 insertions, 11 deletions
diff --git a/template.SlackBuild b/template.SlackBuild
index 76a72d3..81a75e2 100644
--- a/template.SlackBuild
+++ b/template.SlackBuild
@@ -115,10 +115,8 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
# 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.
-( 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
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# Compress info pages and remove the package's dir file
# If no info pages are installed by the software, don't leave this in the script
@@ -128,13 +126,11 @@ gzip -9 $PKG/usr/info/*.info*
# Remove perllocal.pod and other special files that don't need to be installed,
# as they will overwrite what's already on the system. If this is not needed,
# remove it from the script.
-( cd $PKG
- # Remove 'special' files
- find . -name perllocal.pod \
- -o -name ".packlist" \
- -o -name "*.bs" \
- | xargs rm -f
-)
+# Remove 'special' files
+find $PKG -name perllocal.pod \
+ -o -name ".packlist" \
+ -o -name "*.bs" \
+ | xargs rm -f
# Copy program documentation into the package
# The included documentation varies from one application to another, so be sure