#!/bin/csh
#
# This UCSF Generation and Cleanup script was created by AGNuS 1.0.
#


# Testing to delete ./pipe_conversion/
if (-e ./pipe_conversion/) then
	echo "Deleteing ./pipe_conversion/"
	rm -fr ./pipe_conversion/ 
endif

# Testing to delete ./pipe_processing/
if (-e ./pipe_processing/) then
	echo "Deleteing ./pipe_processing/"
	rm -fr ./pipe_processing/ 
endif

# Testing to delete ./gHNcoCA_xy.pipe
if (-e ./gHNcoCA_xy.pipe) then
	echo "Deleteing ./gHNcoCA_xy.pipe"
	rm -fr ./gHNcoCA_xy.pipe 
endif

# Testing to delete ./gHNcoCA_xz.pipe
if (-e ./gHNcoCA_xz.pipe) then
	echo "Deleteing ./gHNcoCA_xz.pipe"
	rm -fr ./gHNcoCA_xz.pipe 
endif

# Generate UCSF if ./gHNcoCA.pipe exists
if (-e ./gHNcoCA.pipe) then
	echo "Attempting to generate UCSF file ./gHNcoCA.ucsf"
	if ( { pipe2ucsf ./gHNcoCA.pipe ./gHNcoCA.ucsf } ) then 
		echo "Deleteing ./gHNcoCA.pipe"
		rm -f ./gHNcoCA.pipe 
	endif
endif

