Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 48 lines (38 sloc) 0.772 kB
cc5e008 @zsuraski * Added buildconf, runs all the scripts necessary to build configure …
zsuraski authored
1 #!/bin/sh
117d6a4 Let user override default setting of ``make''
Sascha Schumann authored
2 # $Id$
cc5e008 @zsuraski * Added buildconf, runs all the scripts necessary to build configure …
zsuraski authored
3
8684e74 MFH: - Made build system less major version dependant to ease MFB/MFH
Jani Taskinen authored
4 eval `grep '^PHP_EXTRA_VERSION=' configure.in`
5 case "$PHP_EXTRA_VERSION" in
7575a5e cleanup
foobar authored
6 *-dev)
7 dev=1
8 ;;
9 *)
10 dev=0
11 ;;
0eb7919 @wez MFB buildconf sanity check
wez authored
12 esac
13
14 devok=0
52e00b8 Added --debug option to buildconf
foobar authored
15 debug=no
0eb7919 @wez MFB buildconf sanity check
wez authored
16
e4c6142 Revert undiscussed / undecided patch
foobar authored
17 while test $# -gt 0; do
18 if test "$1" = "--force"; then
19 devok=1
20 echo "Forcing buildconf"
21 fi
8a7784d make copy optional
Sascha Schumann authored
22
52e00b8 Added --debug option to buildconf
foobar authored
23 if test "$1" = "--debug"; then
24 debug=yes
25 fi
26
e4c6142 Revert undiscussed / undecided patch
foobar authored
27 shift
5278f12 iterate through passed arguments
Sascha Schumann authored
28 done
bca90b0 changing this to mv ZendEngine2 Zend instead of shell logic that isn'…
James Cox authored
29
0eb7919 @wez MFB buildconf sanity check
wez authored
30 if test "$dev" = "0" -a "$devok" = "0"; then
7575a5e cleanup
foobar authored
31 echo "You should not run buildconf in a release package."
32 echo "use buildconf --force to override this check."
33 exit 1
0eb7919 @wez MFB buildconf sanity check
wez authored
34 fi
15c9560 Make "buildconf --force" more robust, per IRC chat. Not backported t…
Christopher Jones authored
35
36 if test "$devok" = "1"; then
37 echo "Removing configure caches"
38 rm -rf autom4te.cache config.cache
39 fi
40
0181cae Some crappy makes don't handle the .PHONY target correctly.
Sascha Schumann authored
41 rm -f generated_lists
42
996c9d8 - Fix buildconf with BSD make
foobar authored
43 if test "$debug" = "yes"; then
a56e81f - Removed unused parts
Jani Taskinen authored
44 ${MAKE:-make} -s -f build/build.mk SUPPRESS_WARNINGS=""
996c9d8 - Fix buildconf with BSD make
foobar authored
45 else
a56e81f - Removed unused parts
Jani Taskinen authored
46 ${MAKE:-make} -s -f build/build.mk
996c9d8 - Fix buildconf with BSD make
foobar authored
47 fi
Something went wrong with that request. Please try again.