php-src/buildconf

43 lines
693 B
Plaintext
Raw Normal View History

#!/bin/sh
# $Id$
2003-05-19 11:47:13 +00:00
eval `grep '^EXTRA_VERSION=' configure.in`
case "$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
2002-06-24 03:05:00 +00:00
while test $# -gt 0; do
2003-05-19 11:54:00 +00:00
if test "$1" = "--copy"; then
automake_flags=--copy
fi
1999-08-02 21:43:37 +00:00
2003-05-19 11:54:00 +00:00
if test "$1" = "--force"; then
devok=1
echo "Forcing buildconf"
fi
1999-07-17 12:27:54 +00:00
2003-05-19 11:54:00 +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
2002-06-24 03:05:00 +00:00
if test -z "$ZENDDIR"; then
2003-05-19 11:54:00 +00:00
ZENDDIR=Zend
echo "using default Zend directory"
fi
rm -f generated_lists
${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags" ZENDDIR="$ZENDDIR"