diff options
author | dsomero <xgizzmo@slackbuilds.org> | 2013-11-22 02:34:22 -0500 |
---|---|---|
committer | dsomero <xgizzmo@slackbuilds.org> | 2013-11-22 02:34:22 -0500 |
commit | 687c78d5604ce299d5164ffd69de88f2dd10fefc (patch) | |
tree | 2c3b4dd9491198917e0178dd5a0cf0fa3e6715c8 /system/set_rlimits | |
parent | 610e8461bb9b201adbd4bd9257a9bf48be71f62b (diff) |
various: Fix SlackBuild formatting and comment nit picks.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system/set_rlimits')
-rw-r--r-- | system/set_rlimits/set_rlimits.SlackBuild | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/system/set_rlimits/set_rlimits.SlackBuild b/system/set_rlimits/set_rlimits.SlackBuild index 8eed8736812d..a63d64cd9ae8 100644 --- a/system/set_rlimits/set_rlimits.SlackBuild +++ b/system/set_rlimits/set_rlimits.SlackBuild @@ -10,17 +10,15 @@ VERSION=1.3.0 BUILD=${BUILD:-1} 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 -CWD=$(pwd) +CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PKGNAME OUTPUT=${OUTPUT:-/tmp} @@ -43,7 +41,7 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP +cd $TMP rm -rf $PKGNAME-$VERSION tar xvf $CWD/$PKGNAME-$VERSION.tgz cd $PKGNAME-$VERSION @@ -57,7 +55,7 @@ make clean # oops :-) make EXTRA_CFLAGS="$SLKCFLAGS" PREFIX=/usr make install PREFIX=/usr DESTDIR=$PKG -mv $PKG/etc/set_rlimits.conf $PKG/etc/set_rlimits.conf.new +mv $PKG/etc/set_rlimits.conf $PKG/etc/set_rlimits.conf.new find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |