home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / xbbsos2.zip / archiver.bb2 < prev    next >
Text File  |  1992-12-27  |  10KB  |  377 lines

  1. 21
  2. ;ARCHIVER.BB2, archiver control file for XBBS-OS/2, XGROUP and AV
  3. ;KEEP A COPY OF THIS ORIGINAL FILE FOR INFORMATION LATER!
  4. ;
  5. ;format for this archiver.bb2 file (each entry has 21 lines):
  6. ;
  7. ; 1st line:  ID of archiver (like ARC, LHARC, PKZIP, etc.; human consumption)
  8. ; 2nd line:  normal extension for archives (like ZIP, ARC, LZH; note no period)
  9. ; 3rd line:  offset into file to signature
  10. ; 4th line:  list command
  11. ; 5th line:  extract command
  12. ; 6th line:  extract w/ directories command
  13. ; 7th line:  test archive command
  14. ; 8th line:  add/create command
  15. ; 9th line:  add/create w/ paths command
  16. ;10th line:  add/create & recurse command
  17. ;11th line:  move command
  18. ;12th line:  move w/ paths command
  19. ;13th line:  delete command
  20. ;14th line:  signature (case sensitive, leading spaces count!
  21. ;15th line:  startlist string
  22. ;16th line:  endlist string
  23. ;17th line:  old size position  (all positions 0-based, -1 = not available)
  24. ;18th line:  new size position
  25. ;19th line:  file date position
  26. ;20th line:  number of positions in dates (for "03 June 92" would be 3)
  27. ;21st line:  file name position (absolutely required, of course)
  28. ;
  29. ;a semicolon demarks a comment.  they may appear at any point *except*
  30. ;within the 21 lines of an archiver entry.
  31. ;everything on the line after the semicolon is ignored.
  32. ;
  33. ;note that all archiver strings should include the archiver's paramters to
  34. ;prevent it from stopping for input!  also note that archive types are checked
  35. ;in order of their listing in this file.  finally, this file is set up for
  36. ;the archivers I had lying around; if yours are different versions, you may
  37. ;have to modify this file.  All archivers are OS/2 (or FAPI) versions.
  38. ;
  39. ;how archive listing works:
  40. ;
  41. ;XBBS (or AV) first tries to find a signature match.  failing that, it checks
  42. ;to see if the file might be an ARC-format file.  If the latter, READARC.CMD
  43. ;is spawned (by XBBS) with ARC as the first argument and v as the second,
  44. ;followed by the filename.  If the former, the list command is sent, followed
  45. ;by the filename.  output is redirected to a file that XBBS then displays to
  46. ;the user.  crude, but effective.  AV handles things a little more smoothly.
  47. ;
  48. ;although only the list and extract command strings are currently used by
  49. ;XBBS, include them all. someday most or all of Peeker's functionality will
  50. ;be present in XBBS-OS/2. AV likes them, too, and uses most of them now.
  51. ;
  52. ;note to XGroup DOS users:  you'll probably have to modify the ARJ and
  53. ;LHARC listings in here to work with your archivers.
  54. ;
  55. ;
  56. ;This entry is for Zoo 2.1
  57. ;
  58. Zoo 2.1
  59. ZOO
  60. 20
  61. ZOO.EXE v
  62. ZOO.EXE xO
  63. ZOO.EXE xO/
  64. ZOO.EXE -test
  65. ZOO.Exe ah:
  66. ZOO.EXE ah
  67.  
  68. ZOO.EXE aM:h
  69. ZOO.EXE aMh
  70. ZOO.EXE -delete
  71. \xdc\xa7\xc4\xfd
  72. --------  --- --------  --------- --------
  73. --------  --- --------  --------- --------
  74. 0
  75. 2
  76. 3
  77. 3
  78. 7
  79. ;
  80. ;This entry is for LH2 2.11
  81. ;
  82. LHarc 2.11
  83. LZH
  84. 2
  85. LH.EXE /o l
  86. LH.EXE /o x
  87. LH.EXE /o /s x
  88. LH.EXE t
  89. LH.EXE /o a
  90.  
  91. LH.EXE /o /s a
  92. LH.EXE /o m
  93.  
  94. LH.EXE /o d
  95. -lh
  96.   -------- -------- -----------------------------------------
  97.   --------          -----------------------------------------
  98. 0
  99. -1
  100. 1
  101. 1
  102. 2
  103. ;
  104. ;This entry is for PKZIP 1.01
  105. ;
  106. PK(Un)Zip 1.01
  107. ZIP
  108. 0
  109. PKZIP.EXE -v
  110. PKUNZIP.EXE -o
  111. PKUNZIP.EXE -o -d
  112. PKUNZIP.EXE -t
  113. PKZIP.EXE -a
  114. PKZIP.EXE -a -P
  115. PKZIP.EXE -a -p -r
  116. PKZIP.EXE -m
  117. PKZIP.EXE -m -P
  118. PKZIP.EXE -d
  119. PK\x3\x4
  120.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  121.  ------          ------  ---                                 -------
  122. 0
  123. 2
  124. 4
  125. 2
  126. 8
  127. ;
  128. ;This entry is for PKZIP self-extractors type 1
  129. ;
  130. PK(Un)Zip SE #1
  131.  
  132. 2934
  133. PKZIP.EXE -v
  134. PKUNZIP.EXE -o
  135. PKUNZIP.EXE -o -d
  136. PKUNZIP.EXE -t
  137.  
  138.  
  139.  
  140.  
  141.  
  142. PKZIP.EXE -d
  143. PK\x3\x4
  144.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  145.  ------          ------  ---                                 -------
  146. 0
  147. 2
  148. 4
  149. 2
  150. 8
  151. ;
  152. ;This entry is for PKZIP self-extractors type 2
  153. ;
  154. PK(Un)Zip SE #2
  155.  
  156. 12784
  157. PKZIP.EXE -v
  158. PKUNZIP.EXE -o
  159. PKUNZIP.EXE -o -d
  160. PKUNZIP.EXE -t
  161.  
  162.  
  163.  
  164.  
  165.  
  166. PKZIP.EXE -d
  167. PK\x3\x4
  168.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  169.  ------          ------  ---                                 -------
  170. 0
  171. 2
  172. 4
  173. 2
  174. 8
  175. ;
  176. ;
  177. ;This entry is for ZIP 1.9/UNZIP 5.0 (available in 32-bit versions)
  178. ;Move these lines ahead of PK(UN)Zip above to make this the "preferred"
  179. ;archiver for Zip archives.
  180. ;NOTE:  ZIP 1.9 has a bug in ZIP.EXE -j that sometimes flairs up
  181. ;with AV's build command (internal logic error).  Probably best to
  182. ;stick with PKZIP until they get it fixed.
  183. ;
  184. Zip/UnZip 1.9/5.0
  185. ZIP
  186. 0
  187. UNZIP.EXE -lU
  188. UNZIP.EXE -oj
  189. UNZIP.EXE -o
  190. UNZIP.EXE -t
  191. ZIP.EXE -j
  192.  
  193.  
  194. ZIP.EXE -mj
  195.  
  196. ZIP.EXE -d
  197. PK\x3\x4
  198.  ------    ----    ----    ----
  199.  ------                    -------
  200. 0
  201. -1
  202. 1
  203. 2
  204. 3
  205. ;
  206. ;
  207. ;This entry is for Unarj 2.10 ported by Scott Dudley
  208. ;replace begin/end strings with these for UNARJ 2.30 demo version
  209. ;------------ ---------- ---------- ----- ----------------- -------- -----------
  210. ;------------ ---------- ---------- ----- -----------------
  211. ;
  212. (Un)Arj 2.10
  213.  
  214. 0
  215. UNARJ.EXE l
  216. UNARJ.EXE e
  217. UNARJ.EXE x
  218. UNARJ.EXE t
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225. \x60\xea
  226. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  227. ------------ ---------- ---------- ----- -----------------
  228. 1
  229. 2
  230. 4
  231. 1
  232. 0
  233. ;
  234. ;
  235. ;This entry is for Unarj 2.30 demo version
  236. ;
  237. (Un)Arj 2.30 demo
  238.  
  239. 0
  240. UNARJ.EXE l
  241. UNARJ.EXE e
  242. UNARJ.EXE x
  243. UNARJ.EXE t
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250. \x60\xea
  251. ------------ ---------- ---------- ----- ----------------- -------- -----------
  252. ------------ ---------- ---------- ----- -----------------
  253. 1
  254. 2
  255. 4
  256. 1
  257. 0
  258. ;
  259. ;This entry is for ARC 5.12mpl
  260. ;
  261. Arc 5.12mpl
  262. ARC
  263. 0
  264. ARC.EXE lwn
  265. ARC.EXE ewn
  266.  
  267. ARC.EXE t
  268. ARC.EXE awn
  269.  
  270.  
  271. ARC.EXE mwn
  272.  
  273. ARC.EXE dwn
  274. \x1a
  275. ============  ========  =========
  276.         ====  ========
  277. 1
  278. -1
  279. 2
  280. 3
  281. 0
  282. ;
  283. ;This entry is for ARC2 (6.0)
  284. ;=================  ========  =========
  285. ;             ====  ========
  286. Arc2 6.0
  287. ARC
  288. 0
  289. ARC.EXE lwn
  290. ARC.EXE ewn
  291.  
  292. ARC.EXE t
  293. ARC.EXE awn
  294.  
  295.  
  296. ARC.EXE mwn
  297.  
  298. ARC.EXE dwn
  299. \x1a
  300. =================  ========  =========
  301.              ====  ========
  302. 1
  303. -1
  304. 2
  305. 3
  306. 0
  307. ;
  308. ; For possible future use:
  309. ; Squeeze-it signature:  (Offset 0000)  \x48\x4C\x53\x51\x5Ah
  310. ; No OS/2 version available yet
  311. ;
  312. ;Notes on modifying/updating this file:
  313. ;
  314. ;You can add as many archivers as you like to this file.
  315. ;here are some suggestions on how to go about it:
  316. ;
  317. ;list an archive with the archiver, redirecting to a disk
  318. ;file (ex. "ARC l AFILE.ARC > TEMP.").  Load the resultant
  319. ;file into a text editor.  Clip out the startlist and endlist
  320. ;strings and paste directly into this file on the appropriate
  321. ;lines; prevents errors due to typos when copying manually.
  322. ;Count the positions of filename, date, etc. and place on the
  323. ;appropriate line.  Now run the archiver redirected to a file
  324. ;to get its help screen (ex. "ARC > TEMP." or "ZOO h > TEMP.").
  325. ;Look for the various command options (extract, list, etc.) and
  326. ;put them into the file on the appropriate lines -- remember to
  327. ;add the modifiers to prevent the archiver from stopping to ask
  328. ;questions!  You could be in deep doo-doo if it's a detached
  329. ;process.  While it may seem a pain in the arse to have to
  330. ;edit this file when an archiver changes its command structure
  331. ;or list format, at least it's something within your control;
  332. ;you don't have to wait for an update to AV.  That means if I
  333. ;die tomorrow you'll still be able to use AV for years to come.
  334. ;
  335. ;Here's an example of an ARC listing (5.12mpl, command "ARC l"):
  336. ;
  337. ;Name          Length    Date
  338. ;============  ========  =========    <--this line is start-of-list
  339. ;MAKEFILE           374  28 Nov 89
  340. ;QSORT.C          14279  29 Nov 89
  341. ;QSORT.EXE        24629  29 Nov 89
  342. ;STUFF.H            371  29 Nov 89
  343. ;        ====  ========               <--this line is end-of-list
  344. ;Total      4     39653
  345. ;
  346. ;Note the filename is in position 0, old length in position 1, and the
  347. ;date starts in position 2, with 3 parts, and there's no new length
  348. ;field (so it'd be -1).  Compare that to the archiver entry for
  349. ;ARC 5.12mpl above and you should get a feel for what all those fields
  350. ;mean.
  351. ;
  352. ;If you're adding an entirely new archive format, note that you can
  353. ;use 'C'-style \x<hexnumber> on the signature line in this file.
  354. ;For example, the \x1a in ARC 5.12mpl's signature line means AV will
  355. ;look for an ASCII 26 (text EOF marker) in position 0 (first byte, as
  356. ;indicated by ARC's line 3, the offset into a file for the signature)
  357. ;of a file to determine if it's an archive.  If line 3's offset is
  358. ;negative, AV looks from the end of the file instead of the beginning.
  359. ;You can usually figure out what an archiver's signature is by looking
  360. ;at a few archives with a file viewing program like LIST.  By all means
  361. ;send me anything new you figure out for inclusion in future releases.
  362. ;
  363. ;
  364. ;You can have several entries for one type of archive in this file.  AV
  365. ;tries entries sequentially to list the file until it finds one that works.
  366. ;If the first entry for a signature doesn't work, and AV finds one that
  367. ;does, it moves that entry to the top of the list and rewrites ARCHIVER.BB2
  368. ;to make future accesses faster.  This allows me to list everything I can
  369. ;get entries for and let AV sort out what the user actually has that works.
  370. ;It also lets you, the user, create archives with more than one archiver that
  371. ;produces the same sort of archive (or with different switches, like one with
  372. ;LHArc producing -lh5- compression and one with it producing old, compatible
  373. ;-lh1- compression).
  374. ;
  375. ;
  376. ;always end file with blank line or comment
  377.