xref: /PHP-5.3/buildconf (revision a56e81fe)
1#!/bin/sh
2# $Id$
3
4eval `grep '^PHP_EXTRA_VERSION=' configure.in`
5case "$PHP_EXTRA_VERSION" in
6  *-dev)
7    dev=1
8    ;;
9  *)
10    dev=0
11    ;;
12esac
13
14devok=0
15debug=no
16
17while test $# -gt 0; do
18  if test "$1" = "--force"; then
19    devok=1
20    echo "Forcing buildconf"
21  fi
22
23  if test "$1" = "--debug"; then
24    debug=yes
25  fi
26
27  shift
28done
29
30if test "$dev" = "0" -a "$devok" = "0"; then
31  echo "You should not run buildconf in a release package."
32  echo "use buildconf --force to override this check."
33  exit 1
34fi
35
36rm -f generated_lists
37
38if test "$debug" = "yes"; then
39  ${MAKE:-make} -s -f build/build.mk SUPPRESS_WARNINGS=""
40else
41  ${MAKE:-make} -s -f build/build.mk
42fi
43