aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2012-09-08 00:14:39 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-08 00:14:39 -0500
commit21096b3a7d1ca4a2fc59d154cf07a261209d5839 (patch)
tree9b5594670e8710d54a3b71cd5d2236c55600e14c
parentcfeee9b6bd5028731ef8eba3e07e1d791e9e1f22 (diff)
development/nvi: Updated copyright and miscellaneous cleanup
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r--development/nvi/nvi.SlackBuild24
1 files changed, 10 insertions, 14 deletions
diff --git a/development/nvi/nvi.SlackBuild b/development/nvi/nvi.SlackBuild
index e83d26b9f6790..518b34077d9d6 100644
--- a/development/nvi/nvi.SlackBuild
+++ b/development/nvi/nvi.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for nvi
-# Copyright 2008-2011 Robby Workman Northport, Alabama (USA)
+# Copyright 2008-2012 Robby Workman Northport, Alabama (USA)
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nvi
-VERSION=1.81.6
+VERSION=${VERSION:-1.81.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -87,25 +87,21 @@ cd build.unix
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
-cd -
+cd ..
# These are better as softlinks instead of hardlinks
-cd $PKG/usr/man/man1
- rm nex.1 nview.1
- ln -s nvi.1 nex.1
- ln -s nvi.1 nview.1
-cd -
+rm -f $PKG/usr/man/man1/{nex,nview}.1
+ln -s nvi.1 $PKG/usr/man/man1/nex.1
+ln -s nvi.1 $PKG/usr/man/man1/nview.1
-cd $PKG/usr/man
- rm -rf cat*
- find . -type f -exec gzip -9 {} \;
- for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
-cd -
+rm -rf $PKG/usr/man/cat*
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
Changes LICENSE README* TODO docs/html \
- $PKG/usr/doc/$PRGNAM-$VERSION
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install