#!/usr/bin/env bash

set -e

cd "${BASH_SOURCE%/*}/.."

echo "Building phar"
./bin/build-vendor
php -d 'phar.readonly=0' ./bin/build-phar

echo "Building compat phar"
./bin/build-vendor-compat
php -d 'phar.readonly=0' ./bin/build-phar --compat
