summaryrefslogtreecommitdiffstats
path: root/source/d/bison
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/bison')
-rwxr-xr-xsource/d/bison/bison.SlackBuild18
1 files changed, 14 insertions, 4 deletions
diff --git a/source/d/bison/bison.SlackBuild b/source/d/bison/bison.SlackBuild
index d41436251..b4835eedc 100755
--- a/source/d/bison/bison.SlackBuild
+++ b/source/d/bison/bison.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2005-2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2005-2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,8 +21,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-VERSION=2.4.2
-BUILD=${BUILD:-1}
+PKGNAM=bison
+VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:--j6}
@@ -84,12 +85,21 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" \
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*
gzip -9 $PKG/usr/man/man1/bison.1
+gzip -9 $PKG/usr/man/man1/yacc.1
mkdir -p $PKG/usr/doc/bison-$VERSION
cp -a \
- AUTHORS COPYING* INSTALL NEWS README REFERENCES THANKS doc/FAQ \
+ AUTHORS COPYING* INSTALL NEWS README* REFERENCES THANKS doc/FAQ \
$PKG/usr/doc/bison-$VERSION
+# If there's a ChangeLog, installing at least part of the recent history
+# is useful, but don't let it get totally out of control:
+if [ -r ChangeLog ]; then
+ DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
+ cat ChangeLog | head -n 1000 > $DOCSDIR/ChangeLog
+ touch -r ChangeLog $DOCSDIR/ChangeLog
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc