#!/bin/sh
# GenerateCedarScript-Aux/ppcrworker
# Copyright (C) 1990 by Xerox Corporation.  All rights reserved.
# Michael Plass, January 13, 1992
# Hans Boehm, April 20, 1990 5:13:27 pm PDT
# 
# called by GeneratePpcrScript to do the real work
#
if test ${opt:-no} = yes
then
    set -a
    pcropt=Opt
    cedaropt=''
fi
if test ${bindir:-nocopy} = nocopy
then
	unset bindir
else
	if test -d ${bindir}
	then
		mv ${bindir} ${bindir}~
	fi
    install -d ${bindir}
fi
if test -f ${script:-NONAME}
then
	mv ${script:-NONAME} ${script:-NONAME}~
fi
PPCRTemplate >${script:-NONAME}
/usr/bin/chmod +x ${script:-NONAME}
echo script written on ${script:-NONAME}
#
# complain about any unrecognized variables
#
unset script vp slaveiop striop stdiop thread mem stack tmp h xrhome world pcrver verbose pcrname opt cedaropt pcropt bindir shmtype dbxscript flat
/usr/bin/env | grep -v PATH | sed -e 's/=/: unrecognized option = /'
exit 0