File: Build

package info (click to toggle)
texlive-bin 2007.dfsg.2-4%2Blenny3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 245,472 kB
  • ctags: 135,653
  • sloc: ansic: 971,350; cpp: 307,149; sh: 53,218; perl: 39,201; makefile: 12,611; python: 6,078; xml: 5,342; asm: 4,245; yacc: 3,108; pascal: 2,483; ruby: 2,089; ada: 1,681; lex: 1,654; objc: 1,357; awk: 1,214; tcl: 973; cs: 879; lisp: 708; sed: 536; java: 172; csh: 47
file content (57 lines) | stat: -rwxr-xr-x 1,473 bytes parent folder | download
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
# $Id: Build 2729 2006-12-14 02:12:38Z karl $
# 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.

# cd to our source directory.
mydir=`dirname $0`
cd $mydir || exit 1

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

# allow override of configure location, just in case.
: ${TL_CONFIGURE=../configure}

# allow override of xdvi toolkit.
: ${TL_XDVI_TOOLKIT=--with-xdvi-x-toolkit=xaw}

# allow adding other configure args.
: ${TL_CONFIGURE_ARGS=}

# allow override of make program.
: ${TL_MAKE=make}

# allow override of make target.
: ${TL_TARGET=world}

# and then set GNUMAKE to that, for the sake of freetype2/configure.
: ${GNUMAKE=${TL_MAKE}}
export GNUMAKE

# 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 \
         $TL_XDVI_TOOLKIT \
         $TL_CONFIGURE_ARGS \
         "$@" \
 && time $TL_MAKE $TL_TARGET)