php-src/buildconf

43 lines
668 B
Plaintext
Raw Normal View History

#!/bin/sh
# $Id$
eval `grep '^PHP_EXTRA_VERSION=' configure.in`
case "$PHP_EXTRA_VERSION" in
2003-05-19 11:54:00 +00:00
*-dev)
dev=1
;;
*)
dev=0
;;
2003-05-19 11:47:13 +00:00
esac
devok=0
2005-01-19 23:03:29 +00:00
debug=no
2003-05-19 11:47:13 +00:00
2003-12-02 08:00:23 +00:00
while test $# -gt 0; do
if test "$1" = "--force"; then
devok=1
echo "Forcing buildconf"
fi
1999-07-17 12:27:54 +00:00
2005-01-19 23:03:29 +00:00
if test "$1" = "--debug"; then
debug=yes
fi
2003-12-02 08:00:23 +00:00
shift
2002-06-24 03:05:00 +00:00
done
2003-05-19 11:47:13 +00:00
if test "$dev" = "0" -a "$devok" = "0"; then
2003-05-19 11:54:00 +00:00
echo "You should not run buildconf in a release package."
echo "use buildconf --force to override this check."
exit 1
2003-05-19 11:47:13 +00:00
fi
rm -f generated_lists
2005-02-03 17:42:42 +00:00
if test "$debug" = "yes"; then
2009-07-20 10:51:40 +00:00
${MAKE:-make} -s -f build/build.mk SUPPRESS_WARNINGS=""
2005-02-03 17:42:42 +00:00
else
2009-07-20 10:51:40 +00:00
${MAKE:-make} -s -f build/build.mk
2005-02-03 17:42:42 +00:00
fi