mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
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:
parent
d6ea1383d5
commit
260c02d367
1 changed files with 8 additions and 6 deletions
|
@ -9,12 +9,10 @@ VERSION=${VERSION:-0.8}
|
||||||
BUILD=${BUILD:-2}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -57,10 +55,14 @@ CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" ./configure --prefix=/usr
|
||||||
make
|
make
|
||||||
|
|
||||||
# no 'install' target, so...
|
# no 'install' target, so...
|
||||||
mkdir -p $PKG/usr/{bin,doc/$PRGNAM-$VERSION,man/man1}
|
mkdir -p $PKG/usr/bin
|
||||||
cp dtach $PKG/usr/bin
|
cp -a 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/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
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
|
|
Loading…
Reference in a new issue