#! /bin/csh -f # FIXME: do NOT use parallel processing in this file. GMT fucks itself up. # # FIXME: magic and hidden files: Another of the wonders of GMT rm -f .gmt* >& /dev/null if ($#argv != 1) then echo "usage: $0 oDir" echo " example: $0 /tmp" exit endif set oDir = $1; shift /bin/rm -rf $oDir/jpeg mkdir -p $oDir/jpeg foreach i ($oDir/plots/*.ps) set stem = `basename -s '.ps' $i` jjPs2Jpeg $i $oDir/jpeg/$stem.Bathymetry.srtm.jpg end