File: autogen.sh

package info (click to toggle)
pspg 5.8.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,368 kB
  • sloc: ansic: 23,412; sh: 101; makefile: 93; sql: 54
file content (21 lines) | stat: -rwxr-xr-x 471 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

export WARNINGS="all"
set -e

# Ideally, we could just do this:
#
#${AUTORECONF:-autoreconf} -v -I tools
#
# Unfortunately, Autoconf 2.61's autoreconf(1) (found in Mac OS X 10.5
# Leopard) neglects to pass the -I on to aclocal(1), which is
# precisely where we need it!  So we do basically what it would have
# done.

run () {
    test "${V}" = 1 && echo $0: running: "$@"
    "$@"
}

run ${ACLOCAL:-aclocal} -I tools
run ${AUTOCONF:-autoconf} --include=tools