#!/bin/csh -f
#
#  make Glauber preinitialization data for all material in
#  Data/BaseM/. This should be used in Data/Media
#  
(cd $COSMOSTOP/Util/DPM; make clean; make -f mkglauber.mk)
foreach f(*)  
	if( $f:e != "GLB"  && $f:e != "inp" ) then 
           if( ! -f $f.GLB ) then
		if( -f $EPICSTOP/Data/BaseM/$f ) then
	           echo $f
		   $EPICSTOP/Scrpt/iniGlauber $EPICSTOP/Data/BaseM/$f $f  
		else		
		   echo "There is no BaseMedia file for" $f
	        endif
           endif
	endif
end

