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

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

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

