#! /bin/csh -f #"@(#)jpost.csh 94/12/19" # # name: jpost - "post" for jis code # usage: jpost [options] file # options: # cf. post # set tmpfile = /tmp/jpost$$ onintr interrupt set opt = '' while ($#argv) switch ("$1") case -ali*: case -fil*: case -wid*: case -lib*: case -ida*: case -del*: case -cli*: case -ser*: if ($#argv < 2) goto help_msg set opt = ($opt $1 $2) shift breaksw case -*: set opt = ($opt $1) breaksw default: break endsw shift end if ($#argv == 0) goto help_msg set msg = $1 shift touch $tmpfile chmod 600 $tmpfile /usr/local/bin/nkf -j $msg > $tmpfile /usr/local/lib/mh/post $opt $tmpfile $* /bin/rm -f $tmpfile exit interrupt: /bin/rm -f $tmpfile exit 1 help_msg: /usr/bin/sed -n '/^[^#]/q;s/^# //p' $0 exit 1