#!/bin/tcsh

set rsrcdir='../../src/arch/mac/machine/carbon/Resources'

echo Resrouce Dir : $rsrcdir
cd $rsrcdir

foreach target (*.rsrc *.ppob)
	echo Compiling $target ...
	mv $target res.r
	/Developer/Tools/Rez -o $target res.r
	cat res.r >> $target
	rm -f res.r
end

echo done.
cd -

set rsrcdir='../../src/arch/mac/viewlib/pp/Resources'

echo Resrouce Dir : $rsrcdir
cd $rsrcdir

foreach target (*.rsrc *.ppob)
	echo Compiling $target ...
	mv $target res.r
	/Developer/Tools/Rez -o $target res.r
	cat res.r >> $target
	rm -f res.r
end

echo done.
cd -

