#!/bin/csh
#
# This UCSF Generation and Cleanup script was created by AGNuS 2.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 ./HNHA_xy.pipe
if (-e ./HNHA_xy.pipe) then
	echo "Deleteing ./HNHA_xy.pipe"
	rm -fr ./HNHA_xy.pipe 
endif

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

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

