home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / SQUISH.ZIP / COMPRESS.CFG next >
Text File  |  1991-11-04  |  5KB  |  117 lines

  1. ; ----- OS/2 version -----
  2.  
  3. ; COMPRESS.CFG contains entries for the various compression programs which
  4. ; you may wish to use with Squish and Maximus.  Each compression progrm
  5. ; should have its own separate entry, and each entry should begin with
  6. ; the text 'Archiver <name>', where <name> is a short name which can
  7. ; be used to refer to the archiver in SQUISH.CFG.
  8. ;
  9. ; IMPORTANT NOTE:  the order of the archiver entries within this file
  10. ; is VERY important.  The FIRST archiver specified will be used as
  11. ; a default, if no 'Pack' statement exists for any given node in
  12. ; SQUISH.CFG.
  13. ;
  14. ; However, when trying to unpack a compressed file, the list of
  15. ; archivers is scanned in a REVERSE order.  This is especially important
  16. ; in the case of ARC and PAK files, since PAK and ARC use the same
  17. ; identification character at the beginning of the file.  (The identity
  18. ; of a PAK-type file must be checked first, in case the file uses a PAK
  19. ; compression method, which PKArc and friends can't handle.)  This is
  20. ; why PAK is listed AFTER PKArc in the distribution control file.
  21.  
  22.  
  23. ; SEA's ARC2
  24.  
  25. Archiver ARC
  26.  
  27.   ; The 'Extension' keyword tells Squish that archives of this flavour
  28.   ; will commonly use the specified file extension.  This isn't used
  29.   ; for decompressing inbound mail packets, but Squish needs to know
  30.   ; about it anyway.
  31.  
  32.   Extension     ARC
  33.  
  34.   ; Unless you are familiar with the internals of compression programs,
  35.   ; the `Ident' keyword (see below) should not be modified.  Two numbers
  36.   ; follow the keyword, each separated by a comma.  When attempting to
  37.   ; decompress an archive of an unknown type, Max and Squish will use
  38.   ; this informtion to automatically identify different types of archives.
  39.   ;
  40.   ; The first number after 'Ident' contains the OFFSET at which a special
  41.   ; identifying marker can be located.  Positive entries work in the
  42.   ; expected manner, whereas negative entries can be used to indicate
  43.   ; offsets from the END of a compressed file.  However, an offset of
  44.   ; "-2" is the LAST character, and an offset of "-3" is the SECOND-LAST
  45.   ; character, etc.
  46.   ;
  47.   ; Following the OFFSET is a series of hexadecimal numbers which
  48.   ; represent the text which can be found at the specified offset in the
  49.   ; compressed mail bundle.  Each byte in the compressed file should
  50.   ; be represented by the appropriate hexadecimal character.  For example,
  51.   ; an uppercase 'A' can be represented with a '41', which is the ASCII
  52.   ; code for 'A' (in hexadecimal).  Strings of characters may also
  53.   ; be recognized by simply specifying more than one sequence of
  54.   ; bytes.  (For an example, see the 'Ident' keyword for PKZip or ZOO.)
  55.  
  56.   Ident         0,1a
  57.  
  58.   ; The Add command tells Squish how to add a packet to an archive of the
  59.   ; specified type.  This should be the normal 'add' command of your
  60.   ; archiver, with one exception: the two special macros, "%a" and "%f",
  61.   ; will be translated to the name of the archive and file to add
  62.   ; (respectively).
  63.  
  64.   Add           arc2 a %a %f
  65.  
  66.   ; The Extract command tells Squish how to remove packets from an
  67.   ; archive of the specified type.  "%a" will be translated to the name
  68.   ; of the archive, and "%f" will be translated to the name of the
  69.   ; file to extract.  (The "%f" specification may be translated into
  70.   ; a wildcard!)
  71.  
  72.   Extract       arc2 x %a %f
  73.  
  74.   ; The View command tells Squish how to get a listing of the contents
  75.   ; of the specified archive.  As above, the "%a" will be translated
  76.   ; into the name of the archive to process.  This command isn't currently
  77.   ; used by Squish, but it may be used in the future.
  78.  
  79.   View          arc2 v %a
  80. End Archiver
  81.  
  82.  
  83. ; Phil Katz's PKZip
  84.  
  85. Archiver ZIP
  86.   Extension     ZIP
  87.   Ident         0,504b0304                      ; "PK^c^d"
  88.   Add           pkzip -a %a %f
  89.   Extract       pkunzip -o %a %f
  90.   View          pkzip -v %a
  91. End Archiver
  92.  
  93. ; Peter Fitzsimmons's LH2 program, in Lharc 1.13 compatibility mode
  94.  
  95. Archiver LH113
  96.   Extension     LZH
  97.   Ident         2,2d6c68                        ; "-lh"
  98.   Add           lh a %a %f /c
  99.   Extract       lh x %a %f
  100.   View          lh v %a
  101. End Archiver
  102.  
  103. ; LH2 in maximum compression mode
  104.  
  105. Archiver LHarc
  106.   Extension     LZH
  107.   Ident         2,2d6c68                        ; "-lh"
  108.   Add           lh a %a %f
  109.   Extract       lh x %a %f
  110.   View          lh v %a
  111. End Archiver
  112.  
  113. ;  If you have an OS/2 version of ZOO, PAK or ARJ,  see the DOS
  114. ;  compress.cfg.  I am not aware that any of these programs are
  115. ;  currently available under OS/2.
  116.  
  117.