#!/bin/bash
export ZEPHIRDIR="/usr/share/zephir"

if [[ $1 && $2 && $3 && "$1"=="-c" ]]; then
    /usr/bin/php -d memory_limit=1G -d extension=zephir_parser.so -c $2 $ZEPHIRDIR/compiler.php ${*:3}
else
    /usr/bin/php -d memory_limit=1G -d extension=zephir_parser.so $ZEPHIRDIR/compiler.php $*
fi

