home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / disks / disk381.lzh / SKsh / view.magic < prev    next >
Text File  |  1990-10-20  |  2KB  |  48 lines

  1.  
  2. # This is a magic file for "view".  The first section define the types...
  3.  
  4. zoo archive:OFFSET:20:dca7c4fd
  5. arc archive:OFFSET:0:1a08
  6. # next line may not be right for early versions of lharc
  7. LHarc archive:OFFSET:2:2d6c68..2d
  8. compressed:OFFSET:0:1f9d
  9. IFF ilbm file:OFFSET:0:464f524d........494c424d
  10. IFF text file:OFFSET:0:464f524d........46545854
  11. IFF anim file:OFFSET:0:464f524d........414e494d
  12. GIF bitmap:OFFSET:0:474946
  13. AmigaDos executable:OFFSET:0:000003f300000000
  14. AmigaDos icon:OFFSET:0:e3100001
  15. AmigaDos icon:OFFSET:0:f34c0012
  16. c source code:WORDS:8:include ,define ,/*,*/,int ,char ,long ,short ,for(,for (, else ,printf(,printf (
  17. english text:WORDS:25: the , if , then , is , are , or , and , when , to , that 
  18. 680x0 assembly:WORDS:8: equ, XREF, mov., beq., sub., add., clr., tst., jsr , movm., link., bra., rts , jmp , cmp.
  19. include file:SUFFIX::.h
  20. object file:SUFFIX::.o
  21. text file:SUFFIX::.txt
  22. manual entry:SUFFIX::.MAN
  23. emacs backup file:SUFFIX::~
  24. copyist music file:SUFFIX::.ME
  25. LHWarp archive:SUFFIX::.lhw
  26. #next line doesn't work in this version of view
  27. directory:DIRECTORY:: 
  28. ascii text:CHARS::0c,0d,0a,20-7e
  29. binary data:CHARS::00-ff
  30.  
  31. # this section defines the actions for each type
  32.  
  33. zoo archive:ACTION::sys:usr/bin/zoo -list %s
  34. arc archive:ACTION::sys:usr/bin/arc -v %s
  35. LHarc archive:ACTION::sys:usr/bin/lharc v %s
  36. directory:ACTION::
  37. binary data:ACTION::sys:usr/local/bin/xd %s
  38. IFF ilbm file:ACTION::sys:usr/contrib/bin/mostra QUIET DOUBLEBUFFERING %s
  39. IFF text file:ACTION::run excellence!:excellence! %s
  40. IFF anim file:ACTION::sys:usr/contrib/bin/showanim -C %s
  41. GIF bitmap:ACTION::sys:usr/contrib/bin/hamgif %s
  42. AmigaDos executable:ACTION::sys:usr/local/bin/xd %s
  43. AmigaDos icon:ACTION::c:echo "%s: Can't view icon."
  44. compressed:ACTION::c:echo "%s: Can't view compressed file."
  45.  
  46. # if we haven't figured out how to deal with it by now, just more it
  47. all:DEFAULT::c:more %s
  48.