source: npl/overig/linuxdoc_tools/trackbuild.linuxdoc-tools @ 7c410f9

Last change on this file since 7c410f9 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100755
File size: 2.8 KB
Line 
1#!/bin/bash
2
3#####################################################################
4# trackbuild.liunxdoc-tools
5# by Stuart Winter <mozes@slackware.com>
6# Preform a few pre-build requirements then launch the build script
7# through slacktrack
8# 31-Jul-2009
9#####################################################################
10
11# Known build requirements:
12#  a/unzip for the docbook stuff
13#  l/libxml2 for /usr/bin/xmlcatalogue
14#  a/rpm2tgz to unpack some SRPMs
15#  d/python for AsciiDoc
16#  l/libxslt
17#  l/seamonkey-solibs for rpm2cpio
18#  t/tetex (not required for a bootstrap build, but will be required
19#           later for a full build of this linuxdoc-tools package).
20
21# Package info:
22PKGNAM=linuxdoc-tools
23
24# Automatically determine the architecture we're building on:
25if [ -z "$ARCH" ]; then
26  case "$( uname -m )" in
27    i?86) export ARCH=i586 ;;
28    armv7hl) export ARCH=armv7hl ;;
29    arm*) export ARCH=arm ;;
30    # Unless $ARCH is already set, use uname -m for all other archs:
31       *) export ARCH=$( uname -m ) ;;
32  esac
33fi
34
35export PKGVERSION=0.9.69 # use the version of linuxdoc-tools as the package version.
36BUILD=${BUILD:-5}
37PKGEXT=${PKGEXT:-txz}
38
39export CWD=$PWD
40export PKGSTORE=/tmp
41export TMP=/tmp/build-$PKGNAM/
42rm -rf $TMP
43
44####################### Clean up before build #####################
45
46# It's best to clear this stuff up prior to the build.
47# All of these directories (apart from /usr/share/xml/libglade) are
48# created by this build script:
49removepkg linuxdoc-tools
50rm -rf /etc/{xml,sgml}
51rm -rf /usr/share/doc/linuxdoc-tools
52rm -rf /usr/share/sgml
53rm -rf /usr/share/xml/{docbook,xml-iso-entities*} # can't wipe the entire dir because of libglade
54rm -rf ~/.texmf-var/ # created by docbook-utils
55rm -rf ~/.texlive*   # incase you were using Texlive rather than Textex-3
56
57####################################################################
58
59######## WARNING ###################################################
60# This will touch nearly every file on your expendable development
61# box.  You wouldn't try this on a production system, right?
62######## WARNING ###################################################
63
64# This the faster option, but not the safest.  On a full Slackware
65# installation, you'll find new files in this directory which have
66# been 'touch'ed.  The --touch-filesystem-first will not do this,
67# but is slower.  However, if you really want extra speed, copy
68# this entire package source directory to a temporary location
69# and run it from there.
70# TFS="--touch-filesystem-faster"
71
72TFS="--touch-filesystem-first"
73
74# Launch the build script:
75slacktrack $TFS \
76   --notidy \
77   --showdeps \
78   -T $TMP \
79   -l $CWD/build.$ARCH.log \
80   -R $CWD/postbuildfixes.sh \
81   -b $PKGSTORE \
82   -rYQOcp $PKGNAM-$PKGVERSION-$ARCH-$BUILD.$PKGEXT ./linuxdoc-tools.build || exit 1
83
84# Compress build log:
85bzip2 -9fvz $CWD/build.$ARCH.log
Note: See TracBrowser for help on using the repository browser.