home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / FMBETA6.ZIP / ARCHIVER.BB2 next >
Text File  |  1993-09-25  |  13KB  |  542 lines

  1. 21
  2. ;That first line is how many lines/record in this archiver.bb2 file...
  3. ;very important, do not change.  Allows future modifications to the
  4. ;file to be transparent to older programs.
  5. ;
  6. ;ARCHIVER.BB2, archiver control file for XBBS-OS/2, XGROUP and AV
  7. ;KEEP A COPY OF THIS ORIGINAL FILE FOR INFORMATION LATER!
  8. ;
  9. ;format for this archiver.bb2 file (each entry has 21 lines):
  10. ;
  11. ; 1st line:  ID of archiver (like ARC, LHARC, PKZIP, etc.; human consumption)
  12. ; 2nd line:  normal extension for archives (like ZIP, ARC, LZH; note no period)
  13. ; 3rd line:  offset into file to signature
  14. ; 4th line:  list command
  15. ; 5th line:  extract command
  16. ; 6th line:  extract w/ directories command
  17. ; 7th line:  test archive command
  18. ; 8th line:  add/create command
  19. ; 9th line:  add/create w/ paths command
  20. ;10th line:  add/create & recurse command
  21. ;11th line:  move command
  22. ;12th line:  move w/ paths command
  23. ;13th line:  delete command
  24. ;14th line:  signature (case sensitive, leading spaces count!
  25. ;15th line:  startlist string
  26. ;16th line:  endlist string
  27. ;17th line:  old size position  (all positions 0-based, -1 = not available)
  28. ;18th line:  new size position
  29. ;19th line:  file date position
  30. ;20th line:  number of positions in dates (for "03 June 92" would be 3)
  31. ;21st line:  file name position (absolutely required, of course)
  32. ;
  33. ;a semicolon demarks a comment.  they may appear at any point *except*
  34. ;within the 21 lines of an archiver entry.  comments are ignored by AV.
  35. ;
  36. ;note that all archiver strings should include the archiver's parameter to
  37. ;prevent it from stopping for input!  also note that archive types are checked
  38. ;in order of their listing in this file.  finally, this file is set up for
  39. ;the archivers I had lying around; if yours are different versions, you may
  40. ;have to modify this file.  All archivers are OS/2 (or FAPI) versions.
  41. ;DOS archivers will NOT work.  I said DOS archivers will NOT work.
  42. ;
  43. ;how archive listing works (for the curious):
  44. ;
  45. ;AV first tries to find a signature match.  failing that, it checks
  46. ;to see if the file might be an ARC-format file.  If the latter, READARC.CMD
  47. ;is spawned (by XBBS) with ARC as the first argument and v as the second,
  48. ;followed by the filename (AV spawns ARC directly).  If the former, the list 
  49. ;command is sent, followed by the filename.  AV (and XBBS) then parses the
  50. ;resultant file using the start and end list lines and offsets in file lines
  51. ;listed in this file for the given archiver.
  52. ;
  53. ;Sample C code to access this information is in sample.c in the AV
  54. ;distribution archive, and is free for the using in your own projects.
  55. ;
  56. ;-----------------Archiver data begins-----------------------
  57. ;
  58. ;This entry is for Zoo 2.1
  59. ;
  60. ;NOTE:  Bug in Zoo 2.1 seems to cause files stored with paths to
  61. ;be extracted w/ paths even when you don't ask it to do so...
  62. ;
  63. ;
  64. Zoo 2.1
  65. ZOO
  66. 20
  67. ZOO.EXE v
  68. ZOO.EXE xO
  69. ZOO.EXE xO/
  70. ZOO.EXE -test
  71. ZOO.Exe ah:
  72. ZOO.EXE ah
  73.  
  74. ZOO.EXE aM:h
  75. ZOO.EXE aMh
  76. ZOO.EXE -delete
  77. \xdc\xa7\xc4\xfd
  78. --------  --- --------  --------- --------
  79. --------  --- --------  --------- --------
  80. 0
  81. 2
  82. 3
  83. 3
  84. 7
  85. ;
  86. ; This entry is for LHarc 2.22.  Supposedly fixes bugs in earlier versions.
  87. ; Actually seems to have done so.  Good work, Peter.
  88. ;
  89. LHarc 2.22
  90. LZH
  91. 2
  92. LH.EXE /o l
  93. LH.EXE /o x
  94. LH.EXE /o /s x
  95. LH.EXE t
  96. LH.EXE /o a
  97.  
  98. LH.EXE /o /s a
  99. LH.EXE /o m
  100.  
  101. LH.EXE /o d
  102. -lh
  103.   -------- --------  -----------------------------------------
  104.   --------          -----------------------------------------
  105. 0
  106. -1
  107. 1
  108. 1
  109. 2
  110. ;
  111. ; This entry is for LHarc 2.22 self-extractors.
  112. ;
  113. LHarc 2.22 SE
  114. LZH
  115. 22963
  116. LH.EXE /o l
  117. LH.EXE /o x
  118. LH.EXE /o /s x
  119. LH.EXE t
  120. LH.EXE /o a
  121.  
  122. LH.EXE /o /s a
  123. LH.EXE /o m
  124.  
  125. LH.EXE /o d
  126. -lh
  127.   -------- --------  -----------------------------------------
  128.   --------          -----------------------------------------
  129. 0
  130. -1
  131. 1
  132. 1
  133. 2
  134. ;
  135. ; This entry is for LHA 2.12 (DOS) self-extractors since LH 2.22 seems to
  136. ; recognize them.
  137. ;
  138. LHarc 2.12 DOS SE
  139. LZH
  140. 1638
  141. LH.EXE /o l
  142. LH.EXE /o x
  143. LH.EXE /o /s x
  144. LH.EXE t
  145. LH.EXE /o a
  146.  
  147. LH.EXE /o /s a
  148. LH.EXE /o m
  149.  
  150. LH.EXE /o d
  151. -lh
  152.   -------- --------  -----------------------------------------
  153.   --------          -----------------------------------------
  154. 0
  155. -1
  156. 1
  157. 1
  158. 2
  159. ;
  160. ;
  161. ;This entry is for LH2 2.11.
  162. ;
  163. ;NOTE:  sometimes will put a file into an archive more than once, necessitating 
  164. ;deleting both.  EAs not handled well, but at least they're handled.
  165. ;
  166. LHarc 2.11
  167. LZH
  168. 2
  169. LH.EXE /o l
  170. LH.EXE /o x
  171. LH.EXE /o /s x
  172. LH.EXE t
  173. LH.EXE /o a
  174.  
  175. LH.EXE /o /s a
  176. LH.EXE /o m
  177.  
  178. LH.EXE /o d
  179. -lh
  180.   -------- -------- -----------------------------------------
  181.   --------          -----------------------------------------
  182. 0
  183. -1
  184. 1
  185. 1
  186. 2
  187. ;
  188. ;
  189. ;This entry is for ZIP 1.9/UNZIP 5.0 (available in 32-bit versions)
  190. ;ZIP/UNZIP should work with PKZIP 2.04 files.  Saves EAs well.  Won't
  191. ;extract a file stored with path without the path (actually, this seems
  192. ;to be fixed now.  Maybe.  There are dozens of versions floating around;
  193. ;you don't pays your money and you takes your chances).  If you have a
  194. ;version that won't extract files with paths without the paths, there's
  195. ;a workaround -- change the line "UNZIP.EXE -jo" below to "UNZIP.EXE -o".
  196. ;Because of broken ZIP archives floating around everywhere, this is here
  197. ;without the version flag in the signature (should really be PK\x3\x4\x14).
  198. ;Damnit, it looks like Katz's own software is what does the botching.  So
  199. ;much for the keeper of the ZIP standard...  Zip still seems to have to
  200. ;have erratic problems with creating archives with some pathnames...
  201. ;
  202. Zip/UnZip 1.9/5.0
  203. ZIP
  204. 0
  205. UNZIP.EXE -lU
  206. UNZIP.EXE -jo
  207. UNZIP.EXE -o
  208. UNZIP.EXE -t
  209. ZIP.EXE -j9g
  210. ZIP.EXE -9g
  211. ZIP.EXE -r9g
  212. ZIP.EXE -mj9g
  213. ZIP.EXE -m9g
  214. ZIP.EXE -d
  215. PK\x3\x4
  216.  ------    ----    ----    ----
  217.  ------                    -------
  218. 0
  219. -1
  220. 1
  221. 2
  222. 3
  223. ;
  224. ;
  225. ;This entry is for PKZIP 1.01
  226. ;
  227. PK(Un)Zip 1.01
  228. ZIP
  229. 0
  230. PKZIP.EXE -v
  231. PKUNZIP.EXE -o
  232. PKUNZIP.EXE -o -d
  233. PKUNZIP.EXE -t
  234. PKZIP.EXE -a
  235. PKZIP.EXE -a -P
  236. PKZIP.EXE -a -p -r
  237. PKZIP.EXE -m
  238. PKZIP.EXE -m -P
  239. PKZIP.EXE -d
  240. PK\x3\x4\xa
  241.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  242.  ------          ------  ---                                 -------
  243. 0
  244. 2
  245. 4
  246. 2
  247. 8
  248. ;
  249. ;
  250. ;This entry is for PKZIP 1.01 named PK(Un)Zip2
  251. ;
  252. PK(Un)Zip2 1.01
  253. ZIP
  254. 0
  255. PKZIP2.EXE -v
  256. PKUNZIP2.EXE -o
  257. PKUNZIP2.EXE -o -d
  258. PKUNZIP2.EXE -t
  259. PKZIP2.EXE -a
  260. PKZIP2.EXE -a -P
  261. PKZIP2.EXE -a -p -r
  262. PKZIP2.EXE -m
  263. PKZIP2.EXE -m -P
  264. PKZIP2.EXE -d
  265. PK\x3\x4\xa
  266.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  267.  ------          ------  ---                                 -------
  268. 0
  269. 2
  270. 4
  271. 2
  272. 8
  273. ;
  274. ;This entry is for PKZIP self-extractors type 1
  275. ;
  276. PK(Un)Zip SE #1
  277.  
  278. 2934
  279. PKZIP.EXE -v
  280. PKUNZIP.EXE -o
  281. PKUNZIP.EXE -o -d
  282. PKUNZIP.EXE -t
  283.  
  284.  
  285.  
  286.  
  287.  
  288. PKZIP.EXE -d
  289. PK\x3\x4
  290.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  291.  ------          ------  ---                                 -------
  292. 0
  293. 2
  294. 4
  295. 2
  296. 8
  297. ;
  298. ;This entry is for PKZIP self-extractors type 2
  299. ;
  300. PK(Un)Zip SE #2
  301.  
  302. 12784
  303. PKZIP.EXE -v
  304. PKUNZIP.EXE -o
  305. PKUNZIP.EXE -o -d
  306. PKUNZIP.EXE -t
  307.  
  308.  
  309.  
  310.  
  311.  
  312. PKZIP.EXE -d
  313. PK\x3\x4
  314.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  315.  ------          ------  ---                                 -------
  316. 0
  317. 2
  318. 4
  319. 2
  320. 8
  321. ;
  322. ;
  323. ;
  324. ;This entry is for PKZIP self-extractors type 3
  325. ;
  326. PK(Un)Zip SE #2
  327.  
  328. 30948
  329. PKZIP.EXE -v
  330. PKUNZIP.EXE -o
  331. PKUNZIP.EXE -o -d
  332. PKUNZIP.EXE -t
  333.  
  334.  
  335.  
  336.  
  337.  
  338. PKZIP.EXE -d
  339. PK\x3\x4
  340.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  341.  ------          ------  ---                                 -------
  342. 0
  343. 2
  344. 4
  345. 2
  346. 8
  347. ;
  348. ;
  349. ;This entry is for Unarj 2.10 ported by Scott Dudley
  350. ;
  351. (Un)Arj 2.10
  352.  
  353. 0
  354. UNARJ.EXE l
  355. UNARJ.EXE e
  356. UNARJ.EXE x
  357. UNARJ.EXE t
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364. \x60\xea
  365. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  366. ------------ ---------- ---------- ----- -----------------
  367. 1
  368. 2
  369. 4
  370. 1
  371. 0
  372. ;
  373. ;
  374. ;This entry is for Unarj 2.30 demo version.  Don't use Unarj 2.41; it's broken.
  375. ;
  376. (Un)Arj 2.30 demo
  377.  
  378. 0
  379. UNARJ.EXE l
  380. UNARJ.EXE e
  381. UNARJ.EXE x
  382. UNARJ.EXE t
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389. \x60\xea
  390. ------------ ---------- ---------- ----- ----------------- -------- -----------
  391. ------------ ---------- ---------- ----- -----------------
  392. 1
  393. 2
  394. 4
  395. 1
  396. 0
  397. ;
  398. ;This entry is for ARC 5.12mpl
  399. ;
  400. Arc 5.12mpl
  401. ARC
  402. 0
  403. ARC.EXE lwn
  404. ARC.EXE ewn
  405.  
  406. ARC.EXE t
  407. ARC.EXE awn
  408.  
  409.  
  410. ARC.EXE mwn
  411.  
  412. ARC.EXE dwn
  413. \x1a
  414. ============  ========  =========
  415.         ====  ========
  416. 1
  417. -1
  418. 2
  419. 3
  420. 0
  421. ;
  422. ;This entry is for ARC2 (6.0)
  423. ;Note that I don't actually have a copy of this...
  424. ;
  425. Arc2 6.0
  426. ARC
  427. 0
  428. ARC.EXE lwn
  429. ARC.EXE ewn
  430.  
  431. ARC.EXE t
  432. ARC.EXE awn
  433.  
  434.  
  435. ARC.EXE mwn
  436.  
  437. ARC.EXE dwn
  438. \x1a
  439. =================  ========  =========
  440.              ====  ========
  441. 1
  442. -1
  443. 2
  444. 3
  445. 0
  446. ;
  447. ;-----------------Archiver data ends-----------------------
  448. ;
  449. ;
  450. ; For possible future use:
  451. ;
  452. ; Squeeze-it signature:  (Offset 0)     \x48\x4C\x53\x51\x5Ah
  453. ; HA signature:          (Offset 0)     HA
  454. ; HAP signature:         (Offset 0)     \x913HF
  455. ; HPK signature:         (Offset 0)     HPAK
  456. ; SQZ signature:         (Offset 0)     HLSQZ
  457. ; DWZ signature:         (Offset -3)    DWC
  458. ;
  459. ; No OS/2 versions available yet to my knowledge...
  460. ;
  461. ;
  462. ;
  463. ;Notes on modifying/updating this file:
  464. ;=====================================
  465. ;
  466. ;You can add as many archivers as you like to this file.
  467. ;here are some suggestions on how to go about it:
  468. ;
  469. ;list an archive with the archiver, redirecting to a disk
  470. ;file (ex. "ARC l AFILE.ARC > TEMP.").  Load the resultant
  471. ;file into a text editor.  Clip out the startlist and endlist
  472. ;strings and paste directly into this file on the appropriate
  473. ;lines; prevents errors due to typos when copying manually.
  474. ;Count the positions of filename, date, etc. and place on the
  475. ;appropriate line.  Now run the archiver redirected to a file
  476. ;to get its help screen (ex. "ARC > TEMP." or "ZOO h > TEMP.").
  477. ;Look for the various command options (extract, list, etc.) and
  478. ;put them into the file on the appropriate lines -- remember to
  479. ;add the modifiers to prevent the archiver from stopping to ask
  480. ;questions!  You could be in deep doo-doo if it's a detached
  481. ;process.  While it may seem a pain in the arse to have to
  482. ;edit this file when an archiver changes its command structure
  483. ;or list format, at least it's something within your control;
  484. ;you don't have to wait for an update to AV.  That means if I
  485. ;die tomorrow you'll still be able to use AV for years to come.
  486. ;
  487. ;Here's an example of an ARC listing (5.12mpl, command "ARC l"):
  488. ;
  489. ;----------------cut here----------------------
  490. ;Name          Length    Date
  491. ;============  ========  =========    <--this line is start-of-list
  492. ;MAKEFILE           374  28 Nov 89
  493. ;QSORT.C          14279  29 Nov 89
  494. ;QSORT.EXE        24629  29 Nov 89
  495. ;STUFF.H            371  29 Nov 89
  496. ;        ====  ========               <--this line is end-of-list
  497. ;Total      4     39653
  498. ;----------------cut here----------------------
  499. ;
  500. ;Note the filename is in position 0, old length in position 1, and the
  501. ;date starts in position 2, with 3 parts, and there's no new length
  502. ;field (so it'd be -1).  Compare that to the archiver entry for
  503. ;ARC 5.12mpl above and you should get a feel for what all those fields
  504. ;mean.  Here's a diagram of how a file line breaks down:
  505. ;
  506. ;STUFF.H            371  29 Nov 89
  507. ;  ^                 ^   ^
  508. ;  |                 |   |
  509. ;  |                 |   +--Date starts in field 2, 3 parts (29, Nov, and 89)
  510. ;  |                 |
  511. ;  |                 +--Old file length, field 1
  512. ;  |
  513. ;  +--Filename, field 0 (count from 0, not 1)
  514. ;
  515. ;
  516. ;If you're adding an entirely new archive format, note that you can
  517. ;use 'C'-style \x<hexnumber> on the signature line in this file.
  518. ;For example, the \x1a in ARC 5.12mpl's signature line means AV will
  519. ;look for an ASCII 26 (text EOF marker) in position 0 (first byte, as
  520. ;indicated by ARC's line 3, the offset into a file for the signature)
  521. ;of a file to determine if it's an archive.  If line 3's offset is
  522. ;negative, AV looks from the end of the file instead of the beginning.
  523. ;You can usually figure out what an archiver's signature is by looking
  524. ;at a few archives with a file viewing program like Vernon Buerg's 
  525. ;LIST.  By all means send me anything new you figure out for inclusion
  526. ;in future releases.
  527. ;
  528. ;
  529. ;You can have several entries for one type of archive in this file.  AV
  530. ;tries entries sequentially to list the file until it finds one that works.
  531. ;If the first entry for a signature doesn't work, and AV finds one that
  532. ;does, it moves that entry to the top of the list and rewrites ARCHIVER.BB2
  533. ;to make future accesses faster.  This allows me to list everything I can
  534. ;get entries for and let AV sort out what the user actually has that works.
  535. ;It also lets you, the user, create archives with more than one archiver that
  536. ;produces the same sort of archive (or with different switches, like one with
  537. ;LHArc producing -lh5- compression and one with it producing old, compatible
  538. ;-lh1- compression).
  539. ;
  540. ;
  541. ;always end file with blank line or comment
  542.