summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-03-14 05:42:27 +0000
committer <>2013-04-03 16:25:08 +0000
commitc4dd7a1a684490673e25aaf4fabec5df138854c4 (patch)
tree4d57c44caae4480efff02b90b9be86f44bf25409 /buildconf
downloadphp2-master.tar.gz
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf47
1 files changed, 47 insertions, 0 deletions
diff --git a/buildconf b/buildconf
new file mode 100755
index 0000000..9344b07
--- /dev/null
+++ b/buildconf
@@ -0,0 +1,47 @@
+#!/bin/sh
+# $Id$
+
+eval `grep '^PHP_EXTRA_VERSION=' configure.in`
+case "$PHP_EXTRA_VERSION" in
+ *-dev)
+ dev=1
+ ;;
+ *)
+ dev=0
+ ;;
+esac
+
+devok=0
+debug=no
+
+while test $# -gt 0; do
+ if test "$1" = "--force"; then
+ devok=1
+ echo "Forcing buildconf"
+ fi
+
+ if test "$1" = "--debug"; then
+ debug=yes
+ 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 "$devok" = "1"; then
+ echo "Removing configure caches"
+ rm -rf autom4te.cache config.cache
+fi
+
+rm -f generated_lists
+
+if test "$debug" = "yes"; then
+ ${MAKE:-make} -s -f build/build.mk SUPPRESS_WARNINGS=""
+else
+ ${MAKE:-make} -s -f build/build.mk
+fi