From: Wez Furlong Date: Mon, 19 May 2003 11:45:02 +0000 (+0000) Subject: Add sanity check to buildconf to prevent it from being run in our released X-Git-Tag: BEFORE_FD_REVERT~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60434f91bd9816ff7e020994b0c021d575778a59;p=php Add sanity check to buildconf to prevent it from being run in our released packages. --- diff --git a/buildconf b/buildconf index 5cd9ade76e..8c4ab6c298 100755 --- a/buildconf +++ b/buildconf @@ -1,6 +1,18 @@ #!/bin/sh # $Id$ +eval `grep '^EXTRA_VERSION=' configure.in` +case "$EXTRA_VERSION" in + *-dev) + dev=1 + ;; + *) + dev=0 + ;; +esac + +devok=0 + while test $# -gt 0; do if test "$1" = "--copy"; then automake_flags=--copy @@ -11,9 +23,20 @@ while test $# -gt 0; do echo "Using Zend Engine 2 code" fi + if test "$1" = "--force"; then + devok=1 + echo "Forcing buildconf" + fi + shift done +if test "$dev" = "0" -a "$devok" = "0"; then + echo "You should not run buildconf in a release package." + echo "use buildconf --force to override this check." + exit 1 +fi + if test -z "$ZENDDIR"; then ZENDDIR=Zend echo "using default Zend directory"