From 260c02d367ca969d43eed12af0561169df05b613 Mon Sep 17 00:00:00 2001 From: slakmagik Date: Fri, 28 Jan 2011 23:43:04 -0500 Subject: [PATCH] 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 --- system/dtach/dtach.SlackBuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/system/dtach/dtach.SlackBuild b/system/dtach/dtach.SlackBuild index abd59ca336..ec4c0cc830 100644 --- a/system/dtach/dtach.SlackBuild +++ b/system/dtach/dtach.SlackBuild @@ -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