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

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

