blob: d6ffa1abd7498724924770411a20d5b358ac0111 (
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
29
30
31
32
33
34
35
36
37
38
|
#!/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
# allow override of install destination, just in case.
if test -z "$TL_INSTALL_DEST"; then
H=`pwd`
test -d inst || mkdir -p inst/texmf # avoid configure warnings
TL_INSTALL_DEST=$H/inst
fi
unset CDPATH
test -d Work || mkdir Work
cd Work || exit 1
rm -f tlbuild.log
# allow override of configure location, just in case.
: ${TL_CONFIGURE=../configure}
# 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 $TL_CONFIGURE \
--prefix=$TL_INSTALL_DEST \
--datadir=$TL_INSTALL_DEST \
--with-xdvi-x-toolkit=xaw --enable-gif \
"$@" \
&& time make world) 2>&1 | tee tlbuild.log
|