#!/usr/bin/sh

args=""
while [ $# -gt 0 ]; do
	if [ -z "$(echo -n "$1" | grep ".*\.pcl")" ]; then
		args="$args $1"
	else
		args="$args $(realpath -- "$1")"
	fi
	shift
done
cd /usr/libexec/ghostpcl
./gpcl6 "$args"
