#! /bin/csh # # Usage: xpostc runname # will run the post-processor on runname.res (and uncompress the .Z # file only if necessary..) # if (-e $1.post) mv $1.post $1.post_old if (-e $1.freq) mv $1.freq $1.freq_old if (-e $1.mov) mv $1.mov $1.mov_old if (-e $1.m) mv $1.m $1.m_old # if ( ! -e $1.res) then # if (-e $1.res.Z) then # gunzip -c $1.res.Z > $1.res # endif # if (-e $1.res.gz) then # gunzip -c $1.res.gz > $1.res # endif # endif echo 'Executing postc' gfbin/postc $1 /bin/rm $1.pins echo 'postc complete'