diff options
author | slakmagik <slakmagik@gmail.com> | 2011-01-28 23:43:04 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-03-01 09:50:26 -0600 |
commit | 260c02d367ca969d43eed12af0561169df05b613 (patch) | |
tree | d4d8f12d43e260445127a36cd8bb3574d31d994c /system | |
parent | d6ea1383d5d7b19b400f882be2ff34f3fca8b007 (diff) | |
download | slackbuilds-260c02d367ca969d43eed12af0561169df05b613.tar.gz |
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>
Diffstat (limited to 'system')
-rw-r--r-- | system/dtach/dtach.SlackBuild | 14 |
1 files 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 |