home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 3 / PDCD_3.iso / pocketbk / developmen / x_psion / psion.progs / support / psrtftounix < prev    next >
Text File  |  1993-03-03  |  609b  |  17 lines

  1. #!/bin/csh -f
  2. # this program takes its $1, moves it to $1.tmp, and then runs
  3. # dos2unix to get a unix file. it then removes the tmp file
  4. # it then runs the rtf file through an rtf to interleaf filter 
  5. # and dumps both files in ~/desktop/Psion.cab the interleaf psion cabinet
  6. # it is intended to be called as part of the getrtf.pscmd programs
  7. setenv DISTHOME /usr/dist
  8. setenv ILEAFHOME $DISTHOME/share/ileaf
  9. setenv ILBIN $ILEAFHOME/sun4/bin
  10. setenv OUT `basename $1 .rtf`
  11. mv $1 $1.tmp
  12. dos2unix $1.tmp $1
  13. rm $1.tmp
  14. $ILBIN/rtf5filt -overwrite $1 $OUT.doc
  15. mv $1 ~/desktop/Psion.cab
  16. mv $OUT.doc ~/desktop/Psion.cab
  17.