#!/bin/sh # install into /usr/lib/cups/backend/renderman # Simon Bunker # June 2008 # name of the backend filter NAME=`basename ${0}` # strip renderman: from $DEVICE_URI RENDERER=${DEVICE_URI#renderman://} # add /usr/local/bin/ to path PATH=${PATH}:/usr/local/bin/ # check number of arguments (embodied in $#): case $# in 0) echo "file renderman \"Unknown\" \"Renderman\"" exit 0 ;; 5) INPUT=$6 break ;; 6) INPUT=$6 break ;; *) echo "Wrong number of arguments" echo "Usage: $NAME job-id user title copies options [file]" exit 1 ;; esac # pipe RIB file to renderer on stdin. # pipe output to stderr to log in CUPS cat $INPUT | $RENDERER -Progress 1>&2