summaryrefslogtreecommitdiff
path: root/Build/source/Build
blob: 9f73dd74133252868fe0844ffe91a196f588ff58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# $Id$
# Originally written many years ago by Sebastian Rahtz.  Public domain.
# To build (mostly) without optimization, try CFLAGS=-g Build.
# Any options given are passed along to configure.

if test "x$1" != "x--no-clean"; then
  test -f Makefile && make clean 
  rm -rf Work inst
else
  shift
fi

H=`pwd`
test -d inst || mkdir -p inst/texmf  # avoid configure warnings

unset CDPATH
test -d Work || mkdir Work
cd Work || exit 1

rm -f tlbuild.log

# Force building xdvi-xaw; motif is not always free and/or available.
# --enable-gif is for sam2p; the gif patent has expired worldwide.
(set -x; time ../configure --prefix=$H/inst --datadir=$H/inst \
        --with-xdvi-x-toolkit=xaw --enable-gif \
        "$@" \
 && time make world) 2>&1 | tee tlbuild.log