home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / dwnsrt63.zip / COMPRESS.CFG < prev    next >
Text File  |  1996-12-08  |  6KB  |  151 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. ; SEA's ARC2
  22.  
  23. Archiver ARC
  24.  
  25.   ; The 'Extension' keyword tells Squish that archives of this flavour
  26.   ; will commonly use the specified file extension.  This isn't used
  27.   ; for decompressing inbound mail packets, but Squish needs to know
  28.   ; about it anyway.
  29.  
  30.   Extension             ARC
  31.  
  32.   ; Unless you are familiar with the internals of compression programs,
  33.   ; the `Ident' keyword (see below) should not be modified.  Two numbers
  34.   ; follow the keyword, each separated by a comma.  When attempting to
  35.   ; decompress an archive of an unknown type, Max and Squish will use
  36.   ; this informtion to automatically identify different types of archives.
  37.   ;
  38.   ; The first number after 'Ident' contains the OFFSET at which a special
  39.   ; identifying marker can be located.  Positive entries work in the
  40.   ; expected manner, whereas negative entries can be used to indicate
  41.   ; offsets from the END of a compressed file.  However, an offset of
  42.   ; "-2" is the LAST character, and an offset of "-3" is the SECOND-LAST
  43.   ; character, etc.
  44.   ;
  45.   ; Following the OFFSET is a series of hexadecimal numbers which
  46.   ; represent the text which can be found at the specified offset in the
  47.   ; compressed mail bundle.  Each byte in the compressed file should
  48.   ; be represented by the appropriate hexadecimal character.  For example,
  49.   ; an uppercase 'A' can be represented with a '41', which is the ASCII
  50.   ; code for 'A' (in hexadecimal).  Strings of characters may also
  51.   ; be recognized by simply specifying more than one sequence of
  52.   ; bytes.  (For an example, see the 'Ident' keyword for PKZip or ZOO.)
  53.  
  54.   Ident                 0,1a
  55.  
  56.   ; The Add command tells Squish how to add a packet to an archive of the
  57.   ; specified type.  This should be the normal 'add' command of your
  58.   ; archiver, with one exception: the two special macros, "%a" and "%f",
  59.   ; will be translated to the name of the archive and file to add
  60.   ; (respectively).
  61.  
  62. DOS     Add             pkpak -oct a %a %f
  63. OS2     Add             arc2 aw5 %a %f
  64.  
  65.   ; The Extract command tells Squish how to remove packets from an
  66.   ; archive of the specified type.  "%a" will be translated to the name
  67.   ; of the archive, and "%f" will be translated to the name of the
  68.   ; file to extract.  (The "%f" specification may be translated into
  69.   ; a wildcard!)
  70.  
  71. DOS     Extract         pkunpak /r %a %f
  72. OS2     Extract         arc2 ew %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. DOS     View            pkpak v %a
  80. OS2     View            arc2 l %a
  81. End Archiver
  82.  
  83. ; Phil Katz's PKZip if DOS
  84. ; Info-Zip's zip/unzip if OS2
  85. Archiver ZIP
  86.         Extension       ZIP
  87.         Ident           0,504b0304                      ; "PK^c^d"
  88. DOS     Add             pkzip -a %a %f
  89. OS2     Add             zip -j -k -o %a %f
  90. DOS     Extract         pkunzip -n -) %a %f
  91. OS2     Extract         unzip -Cjos %a %f
  92. DOS     View            pkzip -v %a
  93. OS2     View            unzip -Z -lvhz %a
  94. End Archiver
  95.  
  96. ; Haruyasu Yoshizaki's LHarc program, in maximum compression mode
  97. ; (for OS/2: Peter Fitzsimmons' LH2)
  98.  
  99. Archiver LHarc
  100.         Extension       LZH
  101.         Ident           2,2d6c68                        ; "-lh"
  102. DOS     Add             lha a /m %a %f
  103. OS2     Add             lh2 a %a %f
  104. DOS     Extract         lha e /m %a %f
  105. OS2     Extract         lh2 e %a %f
  106. DOS     View            lha l %a
  107. OS2     View            lh2 l %a
  108. End Archiver
  109.  
  110. ; Robert Jung's ARJ program
  111. ;
  112. ; If you're short on memory, add the "-m4" option to the "arj a" command.
  113. ; Doing so will make ARJ use about 64K less memory.
  114.  
  115. Archiver ARJ
  116.         Extension       ARJ
  117.         Ident           0,60ea
  118. DOS     Add             arj a -e- %a %f
  119. OS2     Add             --- arj not supported under OS/2 ---
  120. DOS     Extract         arj e -n %a %f
  121. OS2     Extract         unarj e %a %f
  122. DOS     View            arj l %a
  123. OS2     View            unarj l %a
  124. End Archiver
  125.  
  126. ; Rahul Dhesi's ZOO program
  127.  
  128. Archiver ZOO
  129.         Extension       ZOO
  130.         Ident           0,5a4f4f                        ; "ZOO"
  131. DOS     Add             zoo a: %a %f
  132. OS2     Add             zoo a: %a %f
  133. DOS     Extract         zoo e:O %a %f
  134. OS2     Extract         zoo e:O %a %f
  135. DOS     View            zoo v %a
  136. OS2     View            zoo v %a
  137. End Archiver
  138.  
  139. ; RAR program
  140. Archiver RAR
  141.         Extension       RAR
  142.         Ident           0,526172211a0700
  143. DOS     Add             rar a -ep1 -m5 -o+ -y %a %f
  144. OS2     Add             rar a -ep1 -m5 -o+ -y %a %f
  145. DOS     Extract         unrar e %a %f
  146. OS2     Extract         rar e %a %f
  147. DOS     View            unrar l %a %f
  148. OS2     View            rar l %a %f
  149. End Archiver
  150.  
  151.