#!/bin/ksh -x
# Split congen.ps into pieces for printing

typeset -i limit=400
typeset -i start=1
typeset -i count=0
typeset -i inc=50
typeset -i last

while (( start <= limit ))
do
	(( last=start+inc-1 ))
	(( count+= 1 ))
	psselect -p${start}-${last} congen.ps congen-p${count}.ps
	(( start+=inc ))
done
