File: build-tests.sh

package info (click to toggle)
tre 0.8.0-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,456 kB
  • ctags: 876
  • sloc: sh: 10,041; ansic: 9,887; makefile: 231; python: 44; sed: 16
file content (34 lines) | stat: -rwxr-xr-x 608 bytes parent folder | download | duplicates (9)
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
#! /bin/sh

set -e

if test -z "$make"; then
  make=make
fi

hostname=`hostname`

for opts in \
  "" \
  "--enable-debug" \
  "--disable-wchar" \
  "--disable-multibyte" \
  "--without-alloca" \
  "--disable-wchar --without-alloca" \
  "--disable-approx" \
  "--disable-agrep" \
  "--enable-system-abi" \
  "--disable-largefile" \
  "--disable-nls" \
  "--disable-warnings"; do

  rm -rf tmp-build
  mkdir tmp-build
  cd tmp-build

  echo "$hostname: Configure options \"$opts\"..." >&2
  ../configure $opts > build-log.txt 2>&1
  $make >> build-log.txt 2>&1
  $make check >> build-log.txt 2>&1
  cd ..
done