home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / SQSHP101.LZH / COMPRESS.CFG < prev    next >
Text File  |  1992-02-29  |  6KB  |  161 lines

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