#!/bin/sh
if [ -f donename.dat ]
then
	rm -f tmpfoldit.bat
	rm -f donename.dat
else
	if [ -f changename.dat ]
	then
		rm -f foldit
		rm -f changename.dat
		cp -f tmpfoldit.bat foldit
		chmod 755 foldit
		cp -f foldit donename.dat
		./foldit 
		exit 0
	else
		if [ -f tmpfoldit.bat ]
		then
			chmod 755 tmpfoldit.bat
			cp -f foldit changename.dat
			./tmpfoldit.bat
			exit 0
		fi
	fi	
fi	
./foldtrajlite -f protein -n native
