Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 70 lines (57 sloc) 1.185 kb
cc5e008 @zsuraski * Added buildconf, runs all the scripts necessary to build configure (St...
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 (St...
zsuraski authored
3
0eb7919 @wez MFB buildconf sanity check
wez authored
4 eval `grep '^EXTRA_VERSION=' configure.in`
5 case "$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" = "--copy"; then
19 automake_flags=--copy
20 fi
1207465 @zsuraski This should sort the buildconf bug...
zsuraski authored
21
e4c6142 Revert undiscussed / undecided patch
foobar authored
22 if test "$1" = "--force"; then
23 devok=1
24 echo "Forcing buildconf"
25 fi
8a7784d make copy optional
Sascha Schumann authored
26
52e00b8 Added --debug option to buildconf
foobar authored
27 if test "$1" = "--debug"; then
28 debug=yes
29 fi
30
e4c6142 Revert undiscussed / undecided patch
foobar authored
31 shift
5278f12 iterate through passed arguments
Sascha Schumann authored
32 done
bca90b0 changing this to mv ZendEngine2 Zend instead of shell logic that isn't p...
James Cox authored
33
0eb7919 @wez MFB buildconf sanity check
wez authored
34 if test "$dev" = "0" -a "$devok" = "0"; then
7575a5e cleanup
foobar authored
35 echo "You should not run buildconf in a release package."
36 echo "use buildconf --force to override this check."
37 exit 1
0eb7919 @wez MFB buildconf sanity check
wez authored
38 fi
39
5278f12 iterate through passed arguments
Sascha Schumann authored
40 if test -z "$ZENDDIR"; then
b97ce9d First shot at making ze1/ze2 coexist
Sascha Schumann authored
41 if grep "PHP_MAJOR_VERSION 5" main/php_version.h >/dev/null; then
42 v=5
43 else
44 v=4
45 fi
46
47 if test "$v" = "5"; then
48 if test -r "Zend/OBJECTS2_HOWTO"; then
49 :
50 else
51 mv Zend ZendEngine1 2>/dev/null
52 mv ZendEngine2 Zend
53 fi
54 else
55 if test -r "Zend/zend_execute_globals.h"; then
52e00b8 Added --debug option to buildconf
foobar authored
56 :
b97ce9d First shot at making ze1/ze2 coexist
Sascha Schumann authored
57 else
58 mv Zend ZendEngine2 2>/dev/null
59 mv ZendEngine1 Zend
60 fi
61 fi
52e00b8 Added --debug option to buildconf
foobar authored
62
7575a5e cleanup
foobar authored
63 ZENDDIR=Zend
64 echo "using default Zend directory"
372cab2 some people would prefer to be able to specify. So, we specify --ZendEng...
James Cox authored
65 fi
66
0181cae Some crappy makes don't handle the .PHONY target correctly.
Sascha Schumann authored
67 rm -f generated_lists
68
52e00b8 Added --debug option to buildconf
foobar authored
69 ${MAKE:-make} -s -f build/build.mk AMFLAGS="$automake_flags" ZENDDIR="$ZENDDIR" SHOW_WARNINGS="$debug"
Something went wrong with that request. Please try again.