#!/bin/sh

dir=`dirname $0`

# This is ugly hack to work around the fact that "$*" expands into empty string
# when given in the argument list if there are no arguments passed to this
# script.
if [ -n "$*" ]; then
  ruby "$dir/r2p" "$*" | php
else
  ruby "$dir/r2p" | php
fi
