Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 35 lines (29 sloc) 1.764 kb
#!/bin/bash
#if [ -z "$HPHP_HOME" ]
#then
export CMAKE_PREFIX_PATH=~/dev
export HPHP_HOME=~/dev/hiphop-php
export HPHP_LIB=~/dev/hiphop-php/bin
export MAKEOPTS=-j4
#fi
# If called as "sh hphp.sh continue" it will not rebuild the file list, it will just jump back into build
if [ "$1" != "continue" ]
then
echo "ocP: Finding files to compile..."
find . -name "*.php" -not -name errorlog.php -not -name phpstub.php -not -name caches_wincache.php -not -name caches_xcache.php -not -name caches_eaccelerator.php -not -name install.php -not -name minikernel.php -not -name phpbb3.php -not -name tempcode.php -not -name tempcode_compiler.php -not -name mysqli.php -not -name access.php -not -name sqlite.php -not -name mysql_dbx.php -not -name postgresql.php -not -name oracle.php -not -name sqlserver.php -not -name ibm.php | egrep -v '/_tests' | egrep -v '/adminzone/pages/minimodules_custom/' | egrep -v '/sources/hooks/modules/admin_import/' | egrep -v '/sources/forum/' | egrep -v '/sources_custom/hooks/systems/addon_registry/' > hphp.files.list
echo "./sources/forum/ocf.php" >> hphp.files.list
# compile_in_ocportal_includes.php is an ocPortal hook for additional specification of what files to include in hphp.files.list
if [ -e "compile_in_ocportal_includes.php" ]
then
php compile_in_ocportal_includes.php
fi
fi
echo "ocP: Compiling..."
if [ ! -e "hphp" ]
then
mkdir hphp
fi
$HPHP_HOME/src/hphp/hphp --input-list=hphp.files.list --log=3 -v "AllDynamic=true" --output-dir=hphp --force=1 --optimize-level=2 --file-cache=hphp-static-cache --keep-tempdir=true
# --cluster-count=200
echo "ocP: Running..."
sudo ./hphp/program -m server -v "Server.SourceRoot=`pwd`" -v "Server.DefaultDocument=index.php" -v "Log.Level=Verbose" --config "ocp.hdf"
Jump to Line
Something went wrong with that request. Please try again.