system/dtach: Miscellaneous cleanups

Remove unneeded comments. Fix bashism (brace expansion) and improve
formatting as a bonus. Also improve man page handling.

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
slakmagik 2011-01-28 23:43:04 -05:00 committed by Robby Workman
parent d6ea1383d5
commit 260c02d367
1 changed files with 8 additions and 6 deletions

View File

@ -9,12 +9,10 @@ VERSION=${VERSION:-0.8}
BUILD=${BUILD:-2}
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
@ -57,10 +55,14 @@ CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr
make
# no 'install' target, so...
mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION,man/man1}
cp dtach $PKG/usr/bin
gzip -9 dtach.1 && cp dtach.1.gz $PKG/usr/man/man1
cp [CR]* $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/usr/bin
cp -a dtach $PKG/usr/bin
mkdir -p $PKG/usr/man/man1
gzip -9c dtach.1 > $PKG/usr/man/man1/dtach.1.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [CR]* $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install