home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / GhostScript / !GhostScr / !Boot next >
Text File  |  2000-05-04  |  2KB  |  57 lines

  1. If "<GhostScript$Dir>" = "" then Set GhostScript$Dir <Obey$Dir>
  2.  
  3. | INSTALLATION CHECK - comment all of this out if you haven't got IfThere
  4. set GSCheck$Path <GS_LIB>
  5. | Check to see if Ghostscript is installed properly, try to find gs_init/ps
  6. | This is version 5_50 so test there first
  7. ifthere <GhostScript$Dir>.6_01.lib.gs_init/ps then set GSOK 1 else set GSOK 0
  8. | But this !Boot may have been copied to the 5_50 version as well
  9. if "<GSOK>" = "0" THEN ifthere <GhostScript$Dir>.5_50.gs_init/ps then set GSOK 1
  10. | I would like to check GS_LIB but that will be a tad complex (comma sep dirs)
  11. if "<GSOK>" = "0" THEN ifthere GSCheck:gs_init/ps then set GSOK 1
  12. |if "<GSOK>" = "0" THEN if "<GS_LIB>" <> "" then set GSOK 1
  13. | If I couldn't find the gs_init/ps file there is no point in going on.
  14. if "<GSOK>" = "0" THEN Error "Please check that Ghostscript is installed correctly, I can't find gs_init/ps in any of the proper places"
  15. | END INSTALLATION CHECK
  16.  
  17. If "<Alias$@RunType_FF5>" = "" then Set Alias$@RunType_FF5 Run <GhostScript$Dir>.!Run %%*0
  18.  
  19. | WIMPSLOT
  20. | Running in a taskwindow sounds like a good idea - process in the background
  21. | Remove 'taskwindow "' and '" -quit -wimpslot 2000K' if it's not working
  22. | If the wimpslot is too high, try reducing it!
  23. | Wimpslot is also set in 'ghost' for when GView is processing, try changing
  24. | there if you use !GView
  25. |set alias$gsalias set alias$%%0 taskwindow "<GhostScript$Dir>.bin.%%0 %%%%*0" -quit -wimpslot 2000K
  26. set alias$gsalias set alias$%%0 <GhostScript$Dir>.bin.%%0 %%%%*0
  27.  
  28. set alias$gs wimpslot -min 2000K |M <GhostScript$Dir>.gs %%*0
  29.  
  30. | The first few convert ps to something useful, args are
  31. | ps2thingy inputfile.ps outputfile.ps any other gs command line args
  32. gsalias ps2spr
  33. gsalias ps2ps
  34. gsalias ps2jpeg
  35. gsalias ps2png
  36. gsalias ps2pcx
  37. gsalias ps2tiff
  38. gsalias ps2pdf
  39. gsalias ps2pdf12
  40. gsalias ps2pdf13
  41. gsalias pdf2ps
  42. gsalias ps2sgi
  43. gsalias gsbj
  44. gsalias gsdj
  45. gsalias gslj
  46. gsalias ps2dsc
  47. gsalias printafm
  48. gsalias wftopfa
  49. set alias$ps2ascii <GhostScript$Dir>.bin.ps2ascii %%*0
  50.  
  51. Iconsprites <GhostScript$Dir>.!Sprites
  52. If "<File$Type_FF5>" = "" then Set File$Type_FF5 PoScript
  53.  
  54. unset GSCheck$Path
  55. unset GSOK
  56. unset gsalias
  57.