#!/bin/sh

MACRO_PS="pause.ps"

find_in_path()
{
    IFS=':'
    for i in $1
    do
        if [ -f $i/$2 ]
	then
	    FILENAME=$i/$2
	    return 
	fi
    done
}

# append the macro ps to the .ctl file
find_in_path $PL_PATH "include/$MACRO_PS"
/bin/cat $FILENAME > $SPOOLDIR/.ctlE$$

# now pass the raster on through
exec /bin/cat
