#!/bin/bash

# Copy this file into the application's root directory and adjust the output
# directory as an absolute path.
OUTDIR="/absolute/path/to/htdocs"

if [ -r etc/plugins ]; then
	PLUGINS="$(sed "s/#.*//" etc/plugins | grep -v "^[[:space:]]*$" | sed "s%^[^/]%$PWD/&%" | paste -sd " ")"
else
	PLUGINS=""
fi
make -C vendor/cbikt/art-framework APPDIR="$PWD" PLUGINS="$PLUGINS" OUTDIR="$OUTDIR" "$@"
