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

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

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

