#!/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 ./HNcaCO_xy.pipe
if (-e ./HNcaCO_xy.pipe) then
	echo "Deleteing ./HNcaCO_xy.pipe"
	rm -fr ./HNcaCO_xy.pipe 
endif

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

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

