#! /bin/sh
for i in Cache/*.vp
do
	vp=${i/.vp/.cgv}
#	if [ ![ -e Cache/$vp ] || $i -nt Cache/$vp ]
	if [ ! -s Cache/$vp ]
	then
		sce-cgc -strict -p sce_vp_rsx $i -o $vp
		mv $vp Cache/
	fi
done

for i in *.fp
do
#	if [ $i -nt ${i/.fp/.cgf} ]
	fp=${i/.fp/.cgf}
	if [ ! -s Cache/$fp ]
	then
		sce-cgc -strict -p sce_fp_rsx $i -o $fp
		mv $fp Cache/
	fi
done
