#!/bin/sh # #------------------------------------------------------------------ # active procedure # # Procedure automatic plotting of metacode files # used by the routine NEWHARD in the gtvirt graphics library # # p1 Metacode file to be plotted # p2 Plotter to be used # p3 Metacode file status after plotting: keep or delete # #------------------------------------------------------------------ # # #if [ $# = 0 ] #then echo "syntax : $0 filename[.vec] /options]" # echo " ex: $0 /usr/users/nom/gregplot" # exit #fi echo " Plotting $1 on $2, Status $3" case $2 in PS) lp -c $1 ;; HPGL) lp -c -dhp7550 $1 ;; *) lp -c -d$2 $1 ;; # *) echo "E-HARD, Unkown plotter $2";; esac # delete the Metacode file if [ $3 = "DELETE" ] then rm $1 echo " Removing $1" fi