home *** CD-ROM | disk | FTP | other *** search
/ The Pier Shareware 6 / The_Pier_Shareware_Number_6_(The_Pier_Exchange)_(1995).iso / 035 / fm2_214.zip / ARCHIVER.BB2 next >
Text File  |  1994-09-11  |  14KB  |  621 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. ;Warning:  I'm told there's a bug in some versions of 4OS2 that can cause
  54. ;a call to an archiver to fail if the archiver has an extension (i.e.
  55. ;UNZIP works, UNZIP.EXE doesn't).  If things fail for no apparent reason
  56. ;and you're using 4OS2 you might keep it in mind.
  57. ;
  58. ;Sample C code to access this information is in sample.c in the AV
  59. ;distribution archive, and is free for the using in your own projects.
  60. ;
  61. ;-----------------Archiver data begins-----------------------
  62. ;
  63. ;This entry is for Zoo 2.1
  64. ;
  65. ;NOTE:  Bug in Zoo 2.1 seems to cause files stored with paths to
  66. ;be extracted w/ paths even when you don't ask it to do so...
  67. ;
  68. ;
  69. Zoo 2.1
  70. ZOO
  71. 20
  72. ZOO.EXE v
  73. ZOO.EXE xO
  74. ZOO.EXE xO/
  75. ZOO.EXE -test
  76. ZOO.Exe ah:
  77. ZOO.EXE ah
  78.  
  79. ZOO.EXE aM:h
  80. ZOO.EXE aMh
  81. ZOO.EXE -delete
  82. \xdc\xa7\xc4\xfd
  83. --------  --- --------  --------- --------
  84. --------  --- --------  --------- --------
  85. 0
  86. 2
  87. 3
  88. 3
  89. 7
  90. ;
  91. ; This entry is for LHarc 2.22.  Supposedly fixes bugs in earlier versions.
  92. ; Actually seems to have done so.  Good work, Peter.
  93. ;
  94. LHarc 2.22
  95. LZH
  96. 2
  97. LH.EXE /o l
  98. LH.EXE /o x
  99. LH.EXE /o /s x
  100. LH.EXE t
  101. LH.EXE /o a
  102.  
  103. LH.EXE /o /s a
  104. LH.EXE /o m
  105.  
  106. LH.EXE /o d
  107. -lh
  108.   -------- --------  -----------------------------------------
  109.   --------          -----------------------------------------
  110. 0
  111. -1
  112. 1
  113. 1
  114. 2
  115. ;
  116. ; Duplicate entry is for LHarc 2.22 using LH32 filename.
  117. ;
  118. LHarc-32 2.22
  119. LZH
  120. 2
  121. LH32.EXE /o l
  122. LH32.EXE /o x
  123. LH32.EXE /o /s x
  124. LH32.EXE t
  125. LH32.EXE /o a
  126.  
  127. LH32.EXE /o /s a
  128. LH32.EXE /o m
  129.  
  130. LH32.EXE /o d
  131. -lh
  132.   -------- --------  -----------------------------------------
  133.   --------          -----------------------------------------
  134. 0
  135. -1
  136. 1
  137. 1
  138. 2
  139. ;
  140. ; This entry is for LHarc 2.22 self-extractors.
  141. ;
  142. LHarc 2.22 SE
  143. LZH
  144. 22963
  145. LH.EXE /o l
  146. LH.EXE /o x
  147. LH.EXE /o /s x
  148. LH.EXE t
  149. LH.EXE /o a
  150.  
  151. LH.EXE /o /s a
  152. LH.EXE /o m
  153.  
  154. LH.EXE /o d
  155. -lh
  156.   -------- --------  -----------------------------------------
  157.   --------          -----------------------------------------
  158. 0
  159. -1
  160. 1
  161. 1
  162. 2
  163. ;
  164. ; This entry is for LHA 2.12 (DOS) self-extractors since LH 2.22 seems to
  165. ; recognize them.
  166. ;
  167. LHarc 2.12 DOS SE
  168. LZH
  169. 1638
  170. LH.EXE /o l
  171. LH.EXE /o x
  172. LH.EXE /o /s x
  173. LH.EXE t
  174. LH.EXE /o a
  175.  
  176. LH.EXE /o /s a
  177. LH.EXE /o m
  178.  
  179. LH.EXE /o d
  180. -lh
  181.   -------- --------  -----------------------------------------
  182.   --------          -----------------------------------------
  183. 0
  184. -1
  185. 1
  186. 1
  187. 2
  188. ;
  189. ;
  190. ;This entry is for LH2 2.11.
  191. ;
  192. ;NOTE:  sometimes will put a file into an archive more than once, necessitating 
  193. ;deleting both.  EAs not handled well, but at least they're handled.
  194. ;
  195. LHarc 2.11
  196. LZH
  197. 2
  198. LH.EXE /o l
  199. LH.EXE /o x
  200. LH.EXE /o /s x
  201. LH.EXE t
  202. LH.EXE /o a
  203.  
  204. LH.EXE /o /s a
  205. LH.EXE /o m
  206.  
  207. LH.EXE /o d
  208. -lh
  209.   -------- -------- -----------------------------------------
  210.   --------          -----------------------------------------
  211. 0
  212. -1
  213. 1
  214. 1
  215. 2
  216. ;
  217. ;
  218. ;This entry is for ZIP 1.9/UNZIP 5.0 (available in 32-bit versions)
  219. ;ZIP/UNZIP should work with PKZIP 2.04 files.  Saves EAs well.  Won't
  220. ;extract a file stored with path without the path (actually, this seems
  221. ;to be fixed now.  Maybe.  There are dozens of versions floating around;
  222. ;you don't pays your money and you takes your chances).  If you have a
  223. ;version that won't extract files with paths without the paths, there's
  224. ;a workaround -- change the line "UNZIP.EXE -jo" below to "UNZIP.EXE -o".
  225. ;Because of broken ZIP archives floating around everywhere, this is here
  226. ;without the version flag in the signature (should really be PK\x3\x4\x14).
  227. ;Damnit, it looks like Katz's own software is what does the botching.  So
  228. ;much for the keeper of the ZIP standard...  Zip still seems to have to
  229. ;have erratic problems with creating archives with some pathnames...
  230. ;
  231. Zip/UnZip 1.9/5.0
  232. ZIP
  233. 0
  234. UNZIP.EXE -lUo
  235. UNZIP.EXE -jo
  236. UNZIP.EXE -o
  237. UNZIP.EXE -to
  238. ZIP.EXE -j9g
  239. ZIP.EXE -9g
  240. ZIP.EXE -r9g
  241. ZIP.EXE -mj9g
  242. ZIP.EXE -m9g
  243. ZIP.EXE -d
  244. PK\x3\x4
  245.  ------    ----    ----    ----
  246.  ------                    -------
  247. 0
  248. -1
  249. 1
  250. 2
  251. 3
  252. ;
  253. ;
  254. ;Duplicate entry is for ZIP 1.9/UNZIP 5.0 using 32 filenames.
  255. ;
  256. Zip/UnZip-32 1.9/5.0
  257. ZIP
  258. 0
  259. UNZIP32.EXE -lUo
  260. UNZIP32.EXE -jo
  261. UNZIP32.EXE -o
  262. UNZIP32.EXE -to
  263. ZIP32.EXE -j9g
  264. ZIP32.EXE -9g
  265. ZIP32.EXE -r9g
  266. ZIP32.EXE -mj9g
  267. ZIP32.EXE -m9g
  268. ZIP32.EXE -d
  269. PK\x3\x4
  270.  ------    ----    ----    ----
  271.  ------                    -------
  272. 0
  273. -1
  274. 1
  275. 2
  276. 3
  277. ;
  278. ;
  279. ;This entry is for PKZIP 1.01
  280. ;
  281. PK(Un)Zip 1.01
  282. ZIP
  283. 0
  284. PKZIP.EXE -v
  285. PKUNZIP.EXE -o
  286. PKUNZIP.EXE -o -d
  287. PKUNZIP.EXE -t
  288. PKZIP.EXE -a
  289. PKZIP.EXE -a -P
  290. PKZIP.EXE -a -p -r
  291. PKZIP.EXE -m
  292. PKZIP.EXE -m -P
  293. PKZIP.EXE -d
  294. PK\x3\x4\xa
  295.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  296.  ------          ------  ---                                 -------
  297. 0
  298. 2
  299. 4
  300. 2
  301. 8
  302. ;
  303. ;
  304. ;This entry is for PKZIP 1.01 named PK(Un)Zip2
  305. ;
  306. PK(Un)Zip2 1.01
  307. ZIP
  308. 0
  309. PKZIP2.EXE -v
  310. PKUNZIP2.EXE -o
  311. PKUNZIP2.EXE -o -d
  312. PKUNZIP2.EXE -t
  313. PKZIP2.EXE -a
  314. PKZIP2.EXE -a -P
  315. PKZIP2.EXE -a -p -r
  316. PKZIP2.EXE -m
  317. PKZIP2.EXE -m -P
  318. PKZIP2.EXE -d
  319. PK\x3\x4\xa
  320.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  321.  ------          ------  ---                                 -------
  322. 0
  323. 2
  324. 4
  325. 2
  326. 8
  327. ;
  328. ;This entry is for PKZIP self-extractors type 1
  329. ;
  330. PK(Un)Zip SE #1
  331.  
  332. 2934
  333. PKZIP.EXE -v
  334. PKUNZIP.EXE -o
  335. PKUNZIP.EXE -o -d
  336. PKUNZIP.EXE -t
  337.  
  338.  
  339.  
  340.  
  341.  
  342. PKZIP.EXE -d
  343. PK\x3\x4
  344.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  345.  ------          ------  ---                                 -------
  346. 0
  347. 2
  348. 4
  349. 2
  350. 8
  351. ;
  352. ;This entry is for PKZIP self-extractors type 2
  353. ;
  354. PK(Un)Zip SE #2
  355.  
  356. 12784
  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. ;
  378. ;This entry is for PKZIP self-extractors type 3
  379. ;
  380. PK(Un)Zip SE #2
  381.  
  382. 30948
  383. PKZIP.EXE -v
  384. PKUNZIP.EXE -o
  385. PKUNZIP.EXE -o -d
  386. PKUNZIP.EXE -t
  387.  
  388.  
  389.  
  390.  
  391.  
  392. PKZIP.EXE -d
  393. PK\x3\x4
  394.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  395.  ------          ------  ---                                 -------
  396. 0
  397. 2
  398. 4
  399. 2
  400. 8
  401. ;
  402. ;
  403. ;This entry is for Unarj 2.10 ported by Scott Dudley
  404. ;
  405. (Un)Arj 2.10
  406.  
  407. 0
  408. UNARJ.EXE l
  409. UNARJ.EXE e
  410. UNARJ.EXE x
  411. UNARJ.EXE t
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418. \x60\xea
  419. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  420. ------------ ---------- ---------- ----- -----------------
  421. 1
  422. 2
  423. 4
  424. 1
  425. 0
  426. ;
  427. ;
  428. ;This entry is for Unarj 2.30 demo version.  Don't use Unarj 2.41; it's broken.
  429. ;
  430. (Un)Arj 2.30 demo
  431.  
  432. 0
  433. UNARJ.EXE l
  434. UNARJ.EXE e
  435. UNARJ.EXE x
  436. UNARJ.EXE t
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443. \x60\xea
  444. ------------ ---------- ---------- ----- ----------------- -------- -----------
  445. ------------ ---------- ---------- ----- -----------------
  446. 1
  447. 2
  448. 4
  449. 1
  450. 0
  451. ;
  452. ;This entry is for ARC 5.12mpl
  453. ;
  454. Arc 5.12mpl
  455. ARC
  456. 0
  457. ARC.EXE lwn
  458. ARC.EXE ewn
  459.  
  460. ARC.EXE t
  461. ARC.EXE awn
  462.  
  463.  
  464. ARC.EXE mwn
  465.  
  466. ARC.EXE dwn
  467. \x1a
  468. ============  ========  =========
  469.         ====  ========
  470. 1
  471. -1
  472. 2
  473. 3
  474. 0
  475. ;
  476. ;This entry is for ARC2 (6.0)
  477. ;Note that I don't actually have a copy of this...
  478. ;
  479. Arc 6.0
  480. ARC
  481. 0
  482. ARC.EXE l
  483. ARC.EXE ewn
  484.  
  485. ARC.EXE t
  486. ARC.EXE awn
  487.  
  488.  
  489. ARC.EXE mwn
  490.  
  491. ARC.EXE dwn
  492. \x1a
  493. =================  ========  =========
  494.              ====  ========
  495. 1
  496. -1
  497. 2
  498. 3
  499. 0
  500. ;
  501. ;
  502. ;Duplicate entry is for ARC2 (6.0) using ARC2 filename.
  503. ;
  504. Arc 6.0
  505. ARC
  506. 0
  507. ARC2.EXE l
  508. ARC2.EXE ewn
  509.  
  510. ARC2.EXE t
  511. ARC2.EXE awn
  512.  
  513.  
  514. ARC2.EXE mwn
  515.  
  516. ARC2.EXE dwn
  517. \x1a
  518. =================  ========  =========
  519.              ====  ========
  520. 1
  521. -1
  522. 2
  523. 3
  524. 0
  525. ;
  526. ;-----------------Archiver data ends-----------------------
  527. ;
  528. ;
  529. ; For possible future use:
  530. ;
  531. ; Squeeze-it signature:  (Offset 0)     \x48\x4C\x53\x51\x5Ah
  532. ; HA signature:          (Offset 0)     HA
  533. ; HAP signature:         (Offset 0)     \x913HF
  534. ; HPK signature:         (Offset 0)     HPAK
  535. ; SQZ signature:         (Offset 0)     HLSQZ
  536. ; DWZ signature:         (Offset -3)    DWC
  537. ;
  538. ; No OS/2 versions available yet to my knowledge...
  539. ;
  540. ;
  541. ;
  542. ;Notes on modifying/updating this file:
  543. ;=====================================
  544. ;
  545. ;You can add as many archivers as you like to this file.
  546. ;here are some suggestions on how to go about it:
  547. ;
  548. ;list an archive with the archiver, redirecting to a disk
  549. ;file (ex. "ARC l AFILE.ARC > TEMP.").  Load the resultant
  550. ;file into a text editor.  Clip out the startlist and endlist
  551. ;strings and paste directly into this file on the appropriate
  552. ;lines; prevents errors due to typos when copying manually.
  553. ;Count the positions of filename, date, etc. and place on the
  554. ;appropriate line.  Now run the archiver redirected to a file
  555. ;to get its help screen (ex. "ARC > TEMP." or "ZOO h > TEMP.").
  556. ;Look for the various command options (extract, list, etc.) and
  557. ;put them into the file on the appropriate lines -- remember to
  558. ;add the modifiers to prevent the archiver from stopping to ask
  559. ;questions!  You could be in deep doo-doo if it's a detached
  560. ;process.  While it may seem a pain in the arse to have to
  561. ;edit this file when an archiver changes its command structure
  562. ;or list format, at least it's something within your control;
  563. ;you don't have to wait for an update to AV.  That means if I
  564. ;die tomorrow you'll still be able to use AV for years to come.
  565. ;
  566. ;Here's an example of an ARC listing (5.12mpl, command "ARC l"):
  567. ;
  568. ;----------------cut here----------------------
  569. ;Name          Length    Date
  570. ;============  ========  =========    <--this line is start-of-list
  571. ;MAKEFILE           374  28 Nov 89
  572. ;QSORT.C          14279  29 Nov 89
  573. ;QSORT.EXE        24629  29 Nov 89
  574. ;STUFF.H            371  29 Nov 89
  575. ;        ====  ========               <--this line is end-of-list
  576. ;Total      4     39653
  577. ;----------------cut here----------------------
  578. ;
  579. ;Note the filename is in position 0, old length in position 1, and the
  580. ;date starts in position 2, with 3 parts, and there's no new length
  581. ;field (so it'd be -1).  Compare that to the archiver entry for
  582. ;ARC 5.12mpl above and you should get a feel for what all those fields
  583. ;mean.  Here's a diagram of how a file line breaks down:
  584. ;
  585. ;STUFF.H            371  29 Nov 89
  586. ;  ^                 ^   ^
  587. ;  |                 |   |
  588. ;  |                 |   +--Date starts in field 2, 3 parts (29, Nov, and 89)
  589. ;  |                 |
  590. ;  |                 +--Old file length, field 1
  591. ;  |
  592. ;  +--Filename, field 0 (count from 0, not 1)
  593. ;
  594. ;
  595. ;If you're adding an entirely new archive format, note that you can
  596. ;use 'C'-style \x<hexnumber> on the signature line in this file.
  597. ;For example, the \x1a in ARC 5.12mpl's signature line means AV will
  598. ;look for an ASCII 26 (text EOF marker) in position 0 (first byte, as
  599. ;indicated by ARC's line 3, the offset into a file for the signature)
  600. ;of a file to determine if it's an archive.  If line 3's offset is
  601. ;negative, AV looks from the end of the file instead of the beginning.
  602. ;You can usually figure out what an archiver's signature is by looking
  603. ;at a few archives with a file viewing program like Vernon Buerg's 
  604. ;LIST.  By all means send me anything new you figure out for inclusion
  605. ;in future releases.
  606. ;
  607. ;
  608. ;You can have several entries for one type of archive in this file.  AV
  609. ;tries entries sequentially to list the file until it finds one that works.
  610. ;If the first entry for a signature doesn't work, and AV finds one that
  611. ;does, it moves that entry to the top of the list and rewrites ARCHIVER.BB2
  612. ;to make future accesses faster.  This allows me to list everything I can
  613. ;get entries for and let AV sort out what the user actually has that works.
  614. ;It also lets you, the user, create archives with more than one archiver that
  615. ;produces the same sort of archive (or with different switches, like one with
  616. ;LHArc producing -lh5- compression and one with it producing old, compatible
  617. ;-lh1- compression).
  618. ;
  619. ;
  620. ;always end file with blank line or comment
  621.