home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / os2 / av180.zip / AVEXE.ZIP / ARCHIVER.BB2 next >
Text File  |  1993-07-17  |  14KB  |  570 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.
  191. ;
  192. ;NOTE:  ZIP 1.9 has a bug in ZIP.EXE -j that sometimes flairs up
  193. ;(internal logic error).  Unknown cause.  UNZIP seems to have problems
  194. ;extracting a single file if the file is stored with paths.
  195. ;
  196. ;Note subtle signature difference between ZIP and PKZIP 1.x files.  There's
  197. ;a version number following the standard PK/x3/x4 signature that indicates
  198. ;whether the archive was created with a 1.x level or 2.x level product.
  199. ;Some archives appear to have this version number fouled up.  See ZIP/UNZIP
  200. ;LR (Last Resort) entry below.
  201. ;
  202. Zip/UnZip 1.9/5.0
  203. ZIP
  204. 0
  205. UNZIP.EXE -lU
  206. UNZIP.EXE -oj
  207. UNZIP.EXE -o
  208. UNZIP.EXE -t
  209. ZIP.EXE -j9
  210. ZIP.EXE -9
  211. ZIP.EXE -r9
  212. ZIP.EXE -mj9
  213. ZIP.EXE -m9
  214. ZIP.EXE -d
  215. PK\x3\x4\x14
  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. ;
  275. ;This entry is for ZIP 1.9/UNZIP 5.0 (available in 32-bit versions)
  276. ;ZIP/UNZIP should work with PKZIP 2.04 files.  Saves EAs well.
  277. ;This is here to try to catch those weird broken signatures that
  278. ;crop up now and then...the LR stands for "last resort".
  279. ;
  280. Zip/UnZip 1.9/5.0(LR)
  281. ZIP
  282. 0
  283. UNZIP.EXE -lU
  284. UNZIP.EXE -oj
  285. UNZIP.EXE -o
  286. UNZIP.EXE -t
  287. ZIP.EXE -j9
  288. ZIP.EXE -9
  289. ZIP.EXE -r9
  290. ZIP.EXE -mj9
  291. ZIP.EXE -m9
  292. ZIP.EXE -d
  293. PK\x3\x4
  294.  ------    ----    ----    ----
  295.  ------                    -------
  296. 0
  297. -1
  298. 1
  299. 2
  300. 3
  301. ;
  302. ;This entry is for PKZIP self-extractors type 1
  303. ;
  304. PK(Un)Zip SE #1
  305.  
  306. 2934
  307. PKZIP.EXE -v
  308. PKUNZIP.EXE -o
  309. PKUNZIP.EXE -o -d
  310. PKUNZIP.EXE -t
  311.  
  312.  
  313.  
  314.  
  315.  
  316. PKZIP.EXE -d
  317. PK\x3\x4
  318.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  319.  ------          ------  ---                                 -------
  320. 0
  321. 2
  322. 4
  323. 2
  324. 8
  325. ;
  326. ;This entry is for PKZIP self-extractors type 2
  327. ;
  328. PK(Un)Zip SE #2
  329.  
  330. 12784
  331. PKZIP.EXE -v
  332. PKUNZIP.EXE -o
  333. PKUNZIP.EXE -o -d
  334. PKUNZIP.EXE -t
  335.  
  336.  
  337.  
  338.  
  339.  
  340. PKZIP.EXE -d
  341. PK\x3\x4
  342.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  343.  ------          ------  ---                                 -------
  344. 0
  345. 2
  346. 4
  347. 2
  348. 8
  349. ;
  350. ;
  351. ;
  352. ;This entry is for PKZIP self-extractors type 3
  353. ;
  354. PK(Un)Zip SE #2
  355.  
  356. 30948
  357. PKZIP.EXE -v
  358. PKUNZIP.EXE -o
  359. PKUNZIP.EXE -o -d
  360. PKUNZIP.EXE -t
  361.  
  362.  
  363.  
  364.  
  365.  
  366. PKZIP.EXE -d
  367. PK\x3\x4
  368.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  369.  ------          ------  ---                                 -------
  370. 0
  371. 2
  372. 4
  373. 2
  374. 8
  375. ;
  376. ;
  377. ;This entry is for Unarj 2.10 ported by Scott Dudley
  378. ;
  379. (Un)Arj 2.10
  380.  
  381. 0
  382. UNARJ.EXE l
  383. UNARJ.EXE e
  384. UNARJ.EXE x
  385. UNARJ.EXE t
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392. \x60\xea
  393. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  394. ------------ ---------- ---------- ----- -----------------
  395. 1
  396. 2
  397. 4
  398. 1
  399. 0
  400. ;
  401. ;
  402. ;This entry is for Unarj 2.30 demo version.  Don't use Unarj 2.41; it's broken.
  403. ;
  404. (Un)Arj 2.30 demo
  405.  
  406. 0
  407. UNARJ.EXE l
  408. UNARJ.EXE e
  409. UNARJ.EXE x
  410. UNARJ.EXE t
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417. \x60\xea
  418. ------------ ---------- ---------- ----- ----------------- -------- -----------
  419. ------------ ---------- ---------- ----- -----------------
  420. 1
  421. 2
  422. 4
  423. 1
  424. 0
  425. ;
  426. ;This entry is for ARC 5.12mpl
  427. ;
  428. Arc 5.12mpl
  429. ARC
  430. 0
  431. ARC.EXE lwn
  432. ARC.EXE ewn
  433.  
  434. ARC.EXE t
  435. ARC.EXE awn
  436.  
  437.  
  438. ARC.EXE mwn
  439.  
  440. ARC.EXE dwn
  441. \x1a
  442. ============  ========  =========
  443.         ====  ========
  444. 1
  445. -1
  446. 2
  447. 3
  448. 0
  449. ;
  450. ;This entry is for ARC2 (6.0)
  451. ;Note that I don't actually have a copy of this...
  452. ;
  453. Arc2 6.0
  454. ARC
  455. 0
  456. ARC.EXE lwn
  457. ARC.EXE ewn
  458.  
  459. ARC.EXE t
  460. ARC.EXE awn
  461.  
  462.  
  463. ARC.EXE mwn
  464.  
  465. ARC.EXE dwn
  466. \x1a
  467. =================  ========  =========
  468.              ====  ========
  469. 1
  470. -1
  471. 2
  472. 3
  473. 0
  474. ;
  475. ;-----------------Archiver data ends-----------------------
  476. ;
  477. ;
  478. ; For possible future use:
  479. ;
  480. ; Squeeze-it signature:  (Offset 0)     \x48\x4C\x53\x51\x5Ah
  481. ; HA signature:          (Offset 0)     HA
  482. ; HAP signature:         (Offset 0)     \x913HF
  483. ; HPK signature:         (Offset 0)     HPAK
  484. ; SQZ signature:         (Offset 0)     HLSQZ
  485. ; DWZ signature:         (Offset -3)    DWC
  486. ;
  487. ; No OS/2 versions available yet to my knowledge...
  488. ;
  489. ;
  490. ;
  491. ;Notes on modifying/updating this file:
  492. ;=====================================
  493. ;
  494. ;You can add as many archivers as you like to this file.
  495. ;here are some suggestions on how to go about it:
  496. ;
  497. ;list an archive with the archiver, redirecting to a disk
  498. ;file (ex. "ARC l AFILE.ARC > TEMP.").  Load the resultant
  499. ;file into a text editor.  Clip out the startlist and endlist
  500. ;strings and paste directly into this file on the appropriate
  501. ;lines; prevents errors due to typos when copying manually.
  502. ;Count the positions of filename, date, etc. and place on the
  503. ;appropriate line.  Now run the archiver redirected to a file
  504. ;to get its help screen (ex. "ARC > TEMP." or "ZOO h > TEMP.").
  505. ;Look for the various command options (extract, list, etc.) and
  506. ;put them into the file on the appropriate lines -- remember to
  507. ;add the modifiers to prevent the archiver from stopping to ask
  508. ;questions!  You could be in deep doo-doo if it's a detached
  509. ;process.  While it may seem a pain in the arse to have to
  510. ;edit this file when an archiver changes its command structure
  511. ;or list format, at least it's something within your control;
  512. ;you don't have to wait for an update to AV.  That means if I
  513. ;die tomorrow you'll still be able to use AV for years to come.
  514. ;
  515. ;Here's an example of an ARC listing (5.12mpl, command "ARC l"):
  516. ;
  517. ;----------------cut here----------------------
  518. ;Name          Length    Date
  519. ;============  ========  =========    <--this line is start-of-list
  520. ;MAKEFILE           374  28 Nov 89
  521. ;QSORT.C          14279  29 Nov 89
  522. ;QSORT.EXE        24629  29 Nov 89
  523. ;STUFF.H            371  29 Nov 89
  524. ;        ====  ========               <--this line is end-of-list
  525. ;Total      4     39653
  526. ;----------------cut here----------------------
  527. ;
  528. ;Note the filename is in position 0, old length in position 1, and the
  529. ;date starts in position 2, with 3 parts, and there's no new length
  530. ;field (so it'd be -1).  Compare that to the archiver entry for
  531. ;ARC 5.12mpl above and you should get a feel for what all those fields
  532. ;mean.  Here's a diagram of how a file line breaks down:
  533. ;
  534. ;STUFF.H            371  29 Nov 89
  535. ;  ^                 ^   ^
  536. ;  |                 |   |
  537. ;  |                 |   +--Date starts in field 2, 3 parts (29, Nov, and 89)
  538. ;  |                 |
  539. ;  |                 +--Old file length, field 1
  540. ;  |
  541. ;  +--Filename, field 0 (count from 0, not 1)
  542. ;
  543. ;
  544. ;If you're adding an entirely new archive format, note that you can
  545. ;use 'C'-style \x<hexnumber> on the signature line in this file.
  546. ;For example, the \x1a in ARC 5.12mpl's signature line means AV will
  547. ;look for an ASCII 26 (text EOF marker) in position 0 (first byte, as
  548. ;indicated by ARC's line 3, the offset into a file for the signature)
  549. ;of a file to determine if it's an archive.  If line 3's offset is
  550. ;negative, AV looks from the end of the file instead of the beginning.
  551. ;You can usually figure out what an archiver's signature is by looking
  552. ;at a few archives with a file viewing program like Vernon Buerg's 
  553. ;LIST.  By all means send me anything new you figure out for inclusion
  554. ;in future releases.
  555. ;
  556. ;
  557. ;You can have several entries for one type of archive in this file.  AV
  558. ;tries entries sequentially to list the file until it finds one that works.
  559. ;If the first entry for a signature doesn't work, and AV finds one that
  560. ;does, it moves that entry to the top of the list and rewrites ARCHIVER.BB2
  561. ;to make future accesses faster.  This allows me to list everything I can
  562. ;get entries for and let AV sort out what the user actually has that works.
  563. ;It also lets you, the user, create archives with more than one archiver that
  564. ;produces the same sort of archive (or with different switches, like one with
  565. ;LHArc producing -lh5- compression and one with it producing old, compatible
  566. ;-lh1- compression).
  567. ;
  568. ;
  569. ;always end file with blank line or comment
  570.