summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-05-19 11:47:13 +0000
committerWez Furlong <wez@php.net>2003-05-19 11:47:13 +0000
commit0eb791969bc39f3f1ca60f281b669e6abd112879 (patch)
tree3c98d4288c3604ac4dd8891d4c65a942ae15c483 /buildconf
parent92dfadb1e05dc11f5b4b93b68f06a545192b06ea (diff)
downloadphp-git-0eb791969bc39f3f1ca60f281b669e6abd112879.tar.gz
MFB buildconf sanity check
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf23
1 files changed, 23 insertions, 0 deletions
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"