summaryrefslogtreecommitdiff
path: root/buildconf
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-12-01 21:37:35 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-12-01 21:37:35 +0000
commit6bb5ff7137b2582211c76bb6c87cd7f939c80eba (patch)
tree6c87ad8545305be002e3b6330bee0601f7b57f60 /buildconf
parent16002532b79a580d0d9b1c0d7a9ad1b1c6608f42 (diff)
downloadphp-git-6bb5ff7137b2582211c76bb6c87cd7f939c80eba.tar.gz
The least intrusive way to 'import' PECL extensions into the main tree.
For the moment this deals with tidy, further extensions can be added at a later point.
Diffstat (limited to 'buildconf')
-rwxr-xr-xbuildconf31
1 files changed, 22 insertions, 9 deletions
diff --git a/buildconf b/buildconf
index 95aa69c1ba..c71df1f9e1 100755
--- a/buildconf
+++ b/buildconf
@@ -12,19 +12,32 @@ case "$EXTRA_VERSION" in
esac
devok=0
+pecl_args=0
-while test $# -gt 0; do
- if test "$1" = "--copy"; then
- automake_flags=--copy
- fi
+# Import 'gold' extensions from PECL
+GOLDEN='tidy'
- if test "$1" = "--force"; then
- devok=1
- echo "Forcing buildconf"
- fi
+for i in $*; do
+ if test "$i" = "--pecl-import"; then
+ pecl_args=1
+ elif test "$i" = "--copy"; then
+ automake_flags=--copy
+ pecl_args=0
+ elif test "$i" = "--force"; then
+ devok=1
+ echo "Forcing buildconf"
+ pecl_args=0
+ elif test $pecl_args -eq 1; then
+ # Allow the developer to specify some custom PECL extensions to fetch
+ GOLDEN=$GOLDEN" "$i
+ fi
+done;
- shift
+cd ext;
+for ext in $GOLDEN; do
+ cvs co -d $ext pecl/$ext;
done
+cd ..;
if test "$dev" = "0" -a "$devok" = "0"; then
echo "You should not run buildconf in a release package."