1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/biology/mopac/files/rmopac
Satoshi Taoka 54c21509a1 Be able to use ${PREFIX}
Submitted by:	maintainer
1999-05-07 05:12:20 +00:00

40 lines
788 B
Tcsh

#!/bin/csh -f
#
set job = $1
set smallmopac = MOPAC7
#
# Check that prior copies of files do not exist
foreach file (out log arc end)
if -e $job.$file mv $job.$file $job.$file.$$
end
#
# Now, make all the necessary assignments
#
setenv FOR005 $job.dat
setenv FOR006 $job.out
setenv FOR009 $job.res
setenv FOR010 $job.den
setenv FOR011 $job.log
setenv FOR012 $job.arc
setenv FOR013 $job.gpt
setenv FOR016 $job.syb
setenv FOR020 $job.ump
setenv SETUP SETUP.DAT
setenv SHUTDOWN $job.end
if -e core rm core
if -e fort.2 rm fort.2
if -e fort.16 rm fort.16
#
time $smallmopac >> $job.log
#
echo job $job is finished
head -3 $job.dat
if -e core rm core
if -e fort.2 rm fort.2
if -e fort.16 rm fort.16
#
if -e SHUTDOWN rm SHUTDOWN
if -e $job.end rm $job.end
if -e nul rm nul
exit