home *** CD-ROM | disk | FTP | other *** search
/ TopWare Tools / TOOLS.iso / tools / top1119 / archiver.bb2 next >
Encoding:
Text File  |  1992-10-11  |  7.2 KB  |  241 lines

  1. ;ARCHIVER.BB2, archiver control file for XBBS-OS/2, XGROUP and AV
  2. ;
  3. ;format for this archiver.bb2 file (each entry has 18 lines):
  4. ;
  5. ; 1st line:  ID of archiver (like ARC, LHARC, PKZIP, etc.; human consumption)
  6. ; 2nd line:  normal extension for archives (like ZIP, ARC, LZH; note no period)
  7. ; 3rd line:  offset into file to signature
  8. ; 4th line:  list command
  9. ; 5th line:  extract command
  10. ; 6th line:  extract w/ directories command
  11. ; 7th line:  test archive command
  12. ; 8th line:  add/create command
  13. ; 9th line:  move command
  14. ;10th line:  delete command
  15. ;11th line:  signature (case sensitive, leading spaces count!
  16. ;12th line:  startlist string
  17. ;13th line:  endlist string
  18. ;14th line:  old size position  (all positions 0-based, -1 = not available)
  19. ;15th line:  new size position
  20. ;16th line:  file date position
  21. ;17th line:  number of positions in dates (for "03 June 92" would be 3)
  22. ;18th line:  file name position (absolutely required, of course)
  23. ;
  24. ;a semicolon demarks a comment.  they may appear at any point *except*
  25. ;within the 18 lines of an archiver entry.
  26. ;everything on the line after the semicolon is ignored.
  27. ;
  28. ;note that all archiver strings should include the archiver's paramters to
  29. ;prevent it from stopping for input!  also note that archive types are checked
  30. ;in order of their listing in this file.  finally, this file is set up for
  31. ;the archivers I had lying around; if yours are different versions, you may
  32. ;have to modify this file.  All archivers are OS/2 (or FAPI) versions.
  33. ;
  34. ;how archive listing works:
  35. ;
  36. ;XBBS (or AV) first tries to find a signature match.  failing that, it checks
  37. ;to see if the file might be an ARC-format file.  If the latter, READARC.CMD
  38. ;is spawned (by XBBS) with ARC as the first argument and v as the second,
  39. ;followed by the filename.  If the former, the list command is sent, followed
  40. ;by the filename.  output is redirected to a file that XBBS then displays to
  41. ;the user.  crude, but effective.  AV handles things a little more smoothly.
  42. ;
  43. ;although only the list and extract command strings are currently used by
  44. ;XBBS, include them all. someday most or all of Peeker's functionality will
  45. ;be present in XBBS-OS/2. AV likes them, too, and uses most of them now.
  46. ;
  47. ;note to XGroup DOS users:  you'll probably have to modify the ARJ and
  48. ;LHARC listings in here to work with your archivers.
  49. ;
  50. ;
  51. ;This entry is for Zoo 1.51 (also seems to work with 2.1)
  52. ;
  53. Zoo
  54. ZOO
  55. 20
  56. ZOO.EXE v
  57. ZOO.EXE xO
  58. ZOO.EXE xO/
  59. ZOO.EXE -test
  60. ZOO.Exe a
  61. ZOO.EXE aM
  62. ZOO.EXE -delete
  63. \xdc\xa7\xc4\xfd
  64. --------  --- --------  --------- --------
  65. --------  --- --------  --------- --------
  66. 0
  67. 2
  68. 3
  69. 3
  70. 7
  71. ;
  72. ;This entry is for LH2 2.11
  73. ;
  74. LHarc
  75. LZH
  76. 2
  77. LH.EXE /o l
  78. LH.EXE /o x
  79. LH.EXE /o /s x
  80. LH.EXE t
  81. LH.EXE /o a
  82. LH.EXE /o m
  83. LH.EXE /o d
  84. -lh
  85.   -------- -------- -----------------------------------------
  86.   --------          -----------------------------------------
  87. 0
  88. -1
  89. 1
  90. 1
  91. 2
  92. ;
  93. ;This entry is for PKZIP 1.01
  94. ;
  95. PK(Un)Zip
  96. ZIP
  97. 0
  98. PKZIP.EXE -v
  99. PKUNZIP.EXE -o
  100. PKUNZIP.EXE -o -d
  101. PKUNZIP.EXE -t
  102. PKZIP.EXE -a
  103. PKZIP.EXE -m
  104. PKZIP.EXE -d
  105. PK\x3\x4
  106.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  107.  ------          ------  ---                                 -------
  108. 0
  109. 2
  110. 4
  111. 2
  112. 8
  113. ;
  114. ;
  115. ;Here's an entry for ZIP 1.9/UNZIP 5.0 (available in 32-bit versions)
  116. ;with which you could replace the above PK(Un)Zip entry
  117. ;NOTE:  ZIP 1.9 has a bug in ZIP.EXE -j that sometimes flairs up
  118. ;with AV's build command (internal logic error).  Probably best to
  119. ;stick with PKZIP until they get it fixed.
  120. ;
  121. ;Zip/UnZip
  122. ;ZIP
  123. ;0
  124. ;UNZIP.EXE -lU
  125. ;UNZIP.EXE -oj
  126. ;UNZIP.EXE -o
  127. ;UNZIP.EXE -t
  128. ;ZIP.EXE -j
  129. ;ZIP.EXE -mj
  130. ;ZIP.EXE -d
  131. ;PK\x3\x4
  132. ; ------    ----    ----    ----
  133. ; ------                    -------
  134. ;0
  135. ;-1
  136. ;1
  137. ;2
  138. ;3
  139. ;
  140. ;
  141. ;This entry is for Unarj 2.10 ported by Scott Dudley
  142. ;replace begin/end strings with these for UNARJ 2.30 demo version
  143. ;------------ ---------- ---------- ----- ----------------- -------- -----------
  144. ;------------ ---------- ---------- ----- -----------------
  145. ;
  146. Arj
  147.  
  148. 0
  149. UNARJ.EXE l
  150. UNARJ.EXE e
  151. UNARJ.EXE x
  152. UNARJ.EXE t
  153.  
  154.  
  155.  
  156. \x60\xea
  157. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  158. ------------ ---------- ---------- ----- -----------------
  159. 1
  160. 2
  161. 4
  162. 1
  163. 0
  164. ;
  165. ;This entry is for ARC 5.12mpl
  166. ;replace begin/end strings with these for ARC2 (6.0)
  167. ;=================  ========  =========
  168. ;             ====  ========
  169. Arc
  170. ARC
  171. 0
  172. ARC.EXE lwn
  173. ARC.EXE ewn
  174.  
  175. ARC.EXE t
  176. ARC.EXE awn
  177. ARC.EXE mwn
  178. ARC.EXE dwn
  179. \x1a
  180. ============  ========  =========
  181.         ====  ========
  182. 1
  183. -1
  184. 2
  185. 3
  186. 0
  187. ;
  188. ;Notes on modifying/updating this file:
  189. ;
  190. ;You can add as many archivers as you like to this file.
  191. ;here are some suggestions on how to go about it:
  192. ;
  193. ;list an archive with the archiver, redirecting to a disk
  194. ;file (ex. "ARC l AFILE.ARC > TEMP.").  Load the resultant
  195. ;file into a text editor.  Clip out the startlist and endlist
  196. ;strings and paste directly into this file on the appropriate
  197. ;lines; prevents errors due to typos when copying manually.
  198. ;Count the positions of filename, date, etc. and place on the
  199. ;appropriate line.  Now run the archiver redirected to a file
  200. ;to get its help screen (ex. "ARC > TEMP." or "ZOO h > TEMP.").
  201. ;Look for the various command options (extract, list, etc.) and
  202. ;put them into the file on the appropriate lines -- remember to
  203. ;add the modifiers to prevent the archiver from stopping to ask
  204. ;questions!  You could be in deep doo-doo if it's a detached
  205. ;process.  While it may seem a pain in the arse to have to
  206. ;edit this file when an archiver changes its command structure
  207. ;or list format, at least it's something within your control;
  208. ;you don't have to wait for an update to AV.  That means if I
  209. ;die tomorrow you'll still be able to use AV for years to come.
  210. ;
  211. ;Here's an example of an ARC listing (5.12mpl, command "ARC l"):
  212. ;
  213. ;Name          Length    Date
  214. ;============  ========  =========    <--this line is start-of-list
  215. ;MAKEFILE           374  28 Nov 89
  216. ;QSORT.C          14279  29 Nov 89
  217. ;QSORT.EXE        24629  29 Nov 89
  218. ;STUFF.H            371  29 Nov 89
  219. ;        ====  ========               <--this line is end-of-list
  220. ;Total      4     39653
  221. ;
  222. ;Note the filename is in position 0, old length in position 1, and the
  223. ;date starts in position 2, with 3 parts, and there's no new length
  224. ;field (so it'd be -1).  Compare that to the archiver entry for
  225. ;ARC 5.12mpl above and you should get a feel for what all those fields
  226. ;mean.
  227. ;
  228. ;If you're adding an entirely new archive format, note that you can
  229. ;use 'C'-style \x<hexnumber> on the signature line in this file.
  230. ;For example, the \x1a in ARC 5.12mpl's signature line means AV will
  231. ;look for an ASCII 26 (text EOF marker) in position 0 (first byte, as
  232. ;indicated by ARC's line 3, the offset into a file for the signature)
  233. ;of a file to determine if it's an archive.  If line 3's offset is
  234. ;negative, AV looks from the end of the file instead of the beginning.
  235. ;You can usually figure out what an archiver's signature is by looking
  236. ;at a few archives with a file viewing program like LIST.  By all means
  237. ;send me anything new you figure out for inclusion in future releases.
  238. ;
  239. ;
  240. ;always end file with blank line or comment
  241.