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

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

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

