svn: /pear/ci/phpfarm/trunk/ src/compile.sh src/options.sh
| From: | Christian Weiske | Date: | Thu, 13 Aug 2009 07:35:12 +0000 |
| Subject: | svn: /pear/ci/phpfarm/trunk/ src/compile.sh src/options.sh | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-57093@lists.php.net to get a copy of this message | ||
cweiske Thu, 13 Aug 2009 07:35:12 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287201
Log:
initial import for phpfarm scripts and structure
Changed paths:
_U pear/ci/phpfarm/trunk/
A pear/ci/phpfarm/trunk/inst/
A pear/ci/phpfarm/trunk/src/
A pear/ci/phpfarm/trunk/src/bzips/
A pear/ci/phpfarm/trunk/src/compile.sh
A pear/ci/phpfarm/trunk/src/options.sh
Property changes on: pear/ci/phpfarm/trunk
___________________________________________________________________
Added: svn:ignore
+ inst/*
Property changes on: pear/ci/phpfarm/trunk/src
___________________________________________________________________
Added: svn:ignore
+ php-*/
bzips/*
Added: pear/ci/phpfarm/trunk/src/compile.sh
===================================================================
--- pear/ci/phpfarm/trunk/src/compile.sh (rev 0)
+++ pear/ci/phpfarm/trunk/src/compile.sh 2009-08-13 07:35:12 UTC (rev 287201)
@@ -0,0 +1,54 @@
+#!/bin/sh
+version=$1
+#directory of this file. all php srces are extrated in it
+basedir="
dirname "$0""
+#directory of php sources of specific version
+srcdir="php-$version"
+#directory with source archives
+bzipsdir='bzips'
+#directory phps get installed into
+instbasedir="$basedir/../inst"
+#directory this specific version gets installed into
+instdir="$instbasedir/php-$version"
+
+
+cd "$basedir"
+
+#we need a php version
+if [ "x$version" = 'x' ]; then
+ echo 'Please specify php version'
+ exit 1
+fi
+
+
+#already extracted?
+if [ ! -d "$srcdir" ]; then
+ echo 'Source directory does not exist; trying to extract'
+ srcfile="$bzipsdir/php-$version.tar.bz2"
+ if [ ! -f "$srcfile" ]; then
+ #FIXME: fetch from museum
+ echo 'Source file not found:'
+ echo "$srcfile"
+ exit 2
+ fi
+ #extract
+ tar xjvf "$srcfile"
+fi
+
+
+source 'options.sh'
+cd "$srcdir"
+#configuring
+#TODO: do not configure when config.nice exists
+./configure \
+ --prefix="$instdir" \
+ --exec-prefix="$instdir" \
+ --program-suffix="$version" \
+ --enable-debug \
+ --disable-short-tags \
+ $configoptions
+#TODO: source other options
+#TODO: check if configure worked
+#TODO: make
+#TODO: make test
+#TODO: make install
Property changes on: pear/ci/phpfarm/trunk/src/compile.sh
___________________________________________________________________
Added: svn:executable
+ *
Added: pear/ci/phpfarm/trunk/src/options.sh
===================================================================
--- pear/ci/phpfarm/trunk/src/options.sh (rev 0)
+++ pear/ci/phpfarm/trunk/src/options.sh 2009-08-13 07:35:12 UTC (rev 287201)
@@ -0,0 +1,15 @@
+#!/bin/bash
+configoptions="\
+--enable-bcmath \
+--enable-calendar \
+--enable-exif \
+--enable-ftp \
+--enable-mbstring \
+--enable-pcntl \
+--enable-soap \
+--enable-sockets \
+--enable-sqlite-utf8 \
+--enable-wddx \
+--enable-zip \
+--enable-gcov \
+--with-gettext"
Property changes on: pear/ci/phpfarm/trunk/src/options.sh
___________________________________________________________________
Added: svn:executable
+ *