development/THE: Fix html documentation.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Richard Narron 2016-08-25 10:17:39 +01:00 committed by David Spencer
parent 0106893f1e
commit ad887bb67f
3 changed files with 28 additions and 14 deletions

View file

@ -2,16 +2,34 @@
# Slackware build script for The Hessling Editor
# Written by Richard Narron (richard@aaazen.com)
# Copyright 2012 Richard Narron, California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=THE
VERSION=${VERSION:-3.3RC4}
BUILD=${BUILD:-3}
BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -22,8 +40,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -67,24 +85,20 @@ CXXFLAGS="$SLKCFLAGS" \
--sysconfdir=/etc
make
make html
make install DESTDIR=$PKG
make html
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
rm -f $PKG/usr/bin/the ; ln -fs nthe $PKG/usr/bin/the
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html/{comm,commset,commsos,misc,images}
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
install -m0644 COPYING FAQ HISTORY INSTALL README* THE*spec TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
install -m0644 index.html $PKG/usr/doc/$PRGNAM-$VERSION/html
install -m0644 comm/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html/comm
install -m0644 commset/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html/commset
install -m0644 commsos/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html/commsos
install -m0644 misc/*.html $PKG/usr/doc/$PRGNAM-$VERSION/html/misc
install -m0644 the64.gif the64.png $CWD/images/*.png \
$PKG/usr/doc/$PRGNAM-$VERSION/html/images
install -m0644 *.html $PKG/usr/doc/$PRGNAM-$VERSION/html
install -m0644 the64.png the64.gif $PKG/usr/doc/$PRGNAM-$VERSION/html
install -m0644 $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKG/install

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 280 B