Skip to content
Newer
Older
100755 70 lines (57 sloc) 1.16 KB
cc5e008 @zsuraski * Added buildconf, runs all the scripts necessary to build configure …
zsuraski authored Apr 18, 1999
1 #!/bin/sh
117d6a4 Let user override default setting of ``make''
Sascha Schumann authored Dec 2, 1999
2 # $Id$
cc5e008 @zsuraski * Added buildconf, runs all the scripts necessary to build configure …
zsuraski authored Apr 18, 1999
3
0eb7919 @wez MFB buildconf sanity check
wez authored May 19, 2003
4 eval `grep '^EXTRA_VERSION=' configure.in`
5 case "$EXTRA_VERSION" in
7575a5e cleanup
foobar authored May 19, 2003
6 *-dev)
7 dev=1
8 ;;
9 *)
10 dev=0
11 ;;
0eb7919 @wez MFB buildconf sanity check
wez authored May 19, 2003
12 esac
13
14 devok=0
52e00b8 Added --debug option to buildconf
foobar authored Jan 19, 2005
15 debug=no
0eb7919 @wez MFB buildconf sanity check
wez authored May 19, 2003
16
e4c6142 Revert undiscussed / undecided patch
foobar authored Dec 2, 2003
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 Aug 2, 1999
21
e4c6142 Revert undiscussed / undecided patch
foobar authored Dec 2, 2003
22 if test "$1" = "--force"; then
23 devok=1
24 echo "Forcing buildconf"
25 fi
8a7784d make copy optional
Sascha Schumann authored Jul 17, 1999
26
52e00b8 Added --debug option to buildconf
foobar authored Jan 19, 2005
27 if test "$1" = "--debug"; then
28 debug=yes
29 fi
30
e4c6142 Revert undiscussed / undecided patch
foobar authored Dec 2, 2003
31 shift
5278f12 iterate through passed arguments
Sascha Schumann authored Jun 24, 2002
32 done
bca90b0 changing this to mv ZendEngine2 Zend instead of shell logic that isn'…
James Cox authored Jun 23, 2002
33
0eb7919 @wez MFB buildconf sanity check
wez authored May 19, 2003
34 if test "$dev" = "0" -a "$devok" = "0"; then
7575a5e cleanup
foobar authored May 19, 2003
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 May 19, 2003
38 fi
39
5278f12 iterate through passed arguments
Sascha Schumann authored Jun 24, 2002
40 if test -z "$ZENDDIR"; then
b97ce9d First shot at making ze1/ze2 coexist
Sascha Schumann authored Jun 25, 2003
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 Jan 19, 2005
56 :
b97ce9d First shot at making ze1/ze2 coexist
Sascha Schumann authored Jun 25, 2003
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 Jan 19, 2005
62
7575a5e cleanup
foobar authored May 19, 2003
63 ZENDDIR=Zend
64 echo "using default Zend directory"
372cab2 some people would prefer to be able to specify. So, we specify --Zend…
James Cox authored Jun 23, 2002
65 fi
66
0181cae Some crappy makes don't handle the .PHONY target correctly.
Sascha Schumann authored Aug 24, 2000
67 rm -f generated_lists
68
52e00b8 Added --debug option to buildconf
foobar authored Jan 19, 2005
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.