home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR24 / FM2_120.ZIP / FM2EXE.ZIP / ARCHIVER.BB2 next >
Text File  |  1993-12-11  |  14KB  |  547 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. ; This entry is for LHarc 2.22 self-extractors.
  117. ;
  118. LHarc 2.22 SE
  119. LZH
  120. 22963
  121. LH.EXE /o l
  122. LH.EXE /o x
  123. LH.EXE /o /s x
  124. LH.EXE t
  125. LH.EXE /o a
  126.  
  127. LH.EXE /o /s a
  128. LH.EXE /o m
  129.  
  130. LH.EXE /o d
  131. -lh
  132.   -------- --------  -----------------------------------------
  133.   --------          -----------------------------------------
  134. 0
  135. -1
  136. 1
  137. 1
  138. 2
  139. ;
  140. ; This entry is for LHA 2.12 (DOS) self-extractors since LH 2.22 seems to
  141. ; recognize them.
  142. ;
  143. LHarc 2.12 DOS SE
  144. LZH
  145. 1638
  146. LH.EXE /o l
  147. LH.EXE /o x
  148. LH.EXE /o /s x
  149. LH.EXE t
  150. LH.EXE /o a
  151.  
  152. LH.EXE /o /s a
  153. LH.EXE /o m
  154.  
  155. LH.EXE /o d
  156. -lh
  157.   -------- --------  -----------------------------------------
  158.   --------          -----------------------------------------
  159. 0
  160. -1
  161. 1
  162. 1
  163. 2
  164. ;
  165. ;
  166. ;This entry is for LH2 2.11.
  167. ;
  168. ;NOTE:  sometimes will put a file into an archive more than once, necessitating 
  169. ;deleting both.  EAs not handled well, but at least they're handled.
  170. ;
  171. LHarc 2.11
  172. LZH
  173. 2
  174. LH.EXE /o l
  175. LH.EXE /o x
  176. LH.EXE /o /s x
  177. LH.EXE t
  178. LH.EXE /o a
  179.  
  180. LH.EXE /o /s a
  181. LH.EXE /o m
  182.  
  183. LH.EXE /o d
  184. -lh
  185.   -------- -------- -----------------------------------------
  186.   --------          -----------------------------------------
  187. 0
  188. -1
  189. 1
  190. 1
  191. 2
  192. ;
  193. ;
  194. ;This entry is for ZIP 1.9/UNZIP 5.0 (available in 32-bit versions)
  195. ;ZIP/UNZIP should work with PKZIP 2.04 files.  Saves EAs well.  Won't
  196. ;extract a file stored with path without the path (actually, this seems
  197. ;to be fixed now.  Maybe.  There are dozens of versions floating around;
  198. ;you don't pays your money and you takes your chances).  If you have a
  199. ;version that won't extract files with paths without the paths, there's
  200. ;a workaround -- change the line "UNZIP.EXE -jo" below to "UNZIP.EXE -o".
  201. ;Because of broken ZIP archives floating around everywhere, this is here
  202. ;without the version flag in the signature (should really be PK\x3\x4\x14).
  203. ;Damnit, it looks like Katz's own software is what does the botching.  So
  204. ;much for the keeper of the ZIP standard...  Zip still seems to have to
  205. ;have erratic problems with creating archives with some pathnames...
  206. ;
  207. Zip/UnZip 1.9/5.0
  208. ZIP
  209. 0
  210. UNZIP.EXE -lU
  211. UNZIP.EXE -jo
  212. UNZIP.EXE -o
  213. UNZIP.EXE -t
  214. ZIP.EXE -j9g
  215. ZIP.EXE -9g
  216. ZIP.EXE -r9g
  217. ZIP.EXE -mj9g
  218. ZIP.EXE -m9g
  219. ZIP.EXE -d
  220. PK\x3\x4
  221.  ------    ----    ----    ----
  222.  ------                    -------
  223. 0
  224. -1
  225. 1
  226. 2
  227. 3
  228. ;
  229. ;
  230. ;This entry is for PKZIP 1.01
  231. ;
  232. PK(Un)Zip 1.01
  233. ZIP
  234. 0
  235. PKZIP.EXE -v
  236. PKUNZIP.EXE -o
  237. PKUNZIP.EXE -o -d
  238. PKUNZIP.EXE -t
  239. PKZIP.EXE -a
  240. PKZIP.EXE -a -P
  241. PKZIP.EXE -a -p -r
  242. PKZIP.EXE -m
  243. PKZIP.EXE -m -P
  244. PKZIP.EXE -d
  245. PK\x3\x4\xa
  246.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  247.  ------          ------  ---                                 -------
  248. 0
  249. 2
  250. 4
  251. 2
  252. 8
  253. ;
  254. ;
  255. ;This entry is for PKZIP 1.01 named PK(Un)Zip2
  256. ;
  257. PK(Un)Zip2 1.01
  258. ZIP
  259. 0
  260. PKZIP2.EXE -v
  261. PKUNZIP2.EXE -o
  262. PKUNZIP2.EXE -o -d
  263. PKUNZIP2.EXE -t
  264. PKZIP2.EXE -a
  265. PKZIP2.EXE -a -P
  266. PKZIP2.EXE -a -p -r
  267. PKZIP2.EXE -m
  268. PKZIP2.EXE -m -P
  269. PKZIP2.EXE -d
  270. PK\x3\x4\xa
  271.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  272.  ------          ------  ---                                 -------
  273. 0
  274. 2
  275. 4
  276. 2
  277. 8
  278. ;
  279. ;This entry is for PKZIP self-extractors type 1
  280. ;
  281. PK(Un)Zip SE #1
  282.  
  283. 2934
  284. PKZIP.EXE -v
  285. PKUNZIP.EXE -o
  286. PKUNZIP.EXE -o -d
  287. PKUNZIP.EXE -t
  288.  
  289.  
  290.  
  291.  
  292.  
  293. PKZIP.EXE -d
  294. PK\x3\x4
  295.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  296.  ------          ------  ---                                 -------
  297. 0
  298. 2
  299. 4
  300. 2
  301. 8
  302. ;
  303. ;This entry is for PKZIP self-extractors type 2
  304. ;
  305. PK(Un)Zip SE #2
  306.  
  307. 12784
  308. PKZIP.EXE -v
  309. PKUNZIP.EXE -o
  310. PKUNZIP.EXE -o -d
  311. PKUNZIP.EXE -t
  312.  
  313.  
  314.  
  315.  
  316.  
  317. PKZIP.EXE -d
  318. PK\x3\x4
  319.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  320.  ------          ------  ---                                 -------
  321. 0
  322. 2
  323. 4
  324. 2
  325. 8
  326. ;
  327. ;
  328. ;
  329. ;This entry is for PKZIP self-extractors type 3
  330. ;
  331. PK(Un)Zip SE #2
  332.  
  333. 30948
  334. PKZIP.EXE -v
  335. PKUNZIP.EXE -o
  336. PKUNZIP.EXE -o -d
  337. PKUNZIP.EXE -t
  338.  
  339.  
  340.  
  341.  
  342.  
  343. PKZIP.EXE -d
  344. PK\x3\x4
  345.  ------  ------   ----- -----   ----    ----   ------  ----  ----
  346.  ------          ------  ---                                 -------
  347. 0
  348. 2
  349. 4
  350. 2
  351. 8
  352. ;
  353. ;
  354. ;This entry is for Unarj 2.10 ported by Scott Dudley
  355. ;
  356. (Un)Arj 2.10
  357.  
  358. 0
  359. UNARJ.EXE l
  360. UNARJ.EXE e
  361. UNARJ.EXE x
  362. UNARJ.EXE t
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369. \x60\xea
  370. ------------ ---------- ---------- ----- ----------------- -------- ---- ------
  371. ------------ ---------- ---------- ----- -----------------
  372. 1
  373. 2
  374. 4
  375. 1
  376. 0
  377. ;
  378. ;
  379. ;This entry is for Unarj 2.30 demo version.  Don't use Unarj 2.41; it's broken.
  380. ;
  381. (Un)Arj 2.30 demo
  382.  
  383. 0
  384. UNARJ.EXE l
  385. UNARJ.EXE e
  386. UNARJ.EXE x
  387. UNARJ.EXE t
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394. \x60\xea
  395. ------------ ---------- ---------- ----- ----------------- -------- -----------
  396. ------------ ---------- ---------- ----- -----------------
  397. 1
  398. 2
  399. 4
  400. 1
  401. 0
  402. ;
  403. ;This entry is for ARC 5.12mpl
  404. ;
  405. Arc 5.12mpl
  406. ARC
  407. 0
  408. ARC.EXE lwn
  409. ARC.EXE ewn
  410.  
  411. ARC.EXE t
  412. ARC.EXE awn
  413.  
  414.  
  415. ARC.EXE mwn
  416.  
  417. ARC.EXE dwn
  418. \x1a
  419. ============  ========  =========
  420.         ====  ========
  421. 1
  422. -1
  423. 2
  424. 3
  425. 0
  426. ;
  427. ;This entry is for ARC2 (6.0)
  428. ;Note that I don't actually have a copy of this...
  429. ;
  430. Arc2 6.0
  431. ARC
  432. 0
  433. ARC.EXE l
  434. ARC.EXE ewn
  435.  
  436. ARC.EXE t
  437. ARC.EXE awn
  438.  
  439.  
  440. ARC.EXE mwn
  441.  
  442. ARC.EXE dwn
  443. \x1a
  444. =================  ========  =========
  445.              ====  ========
  446. 1
  447. -1
  448. 2
  449. 3
  450. 0
  451. ;
  452. ;-----------------Archiver data ends-----------------------
  453. ;
  454. ;
  455. ; For possible future use:
  456. ;
  457. ; Squeeze-it signature:  (Offset 0)     \x48\x4C\x53\x51\x5Ah
  458. ; HA signature:          (Offset 0)     HA
  459. ; HAP signature:         (Offset 0)     \x913HF
  460. ; HPK signature:         (Offset 0)     HPAK
  461. ; SQZ signature:         (Offset 0)     HLSQZ
  462. ; DWZ signature:         (Offset -3)    DWC
  463. ;
  464. ; No OS/2 versions available yet to my knowledge...
  465. ;
  466. ;
  467. ;
  468. ;Notes on modifying/updating this file:
  469. ;=====================================
  470. ;
  471. ;You can add as many archivers as you like to this file.
  472. ;here are some suggestions on how to go about it:
  473. ;
  474. ;list an archive with the archiver, redirecting to a disk
  475. ;file (ex. "ARC l AFILE.ARC > TEMP.").  Load the resultant
  476. ;file into a text editor.  Clip out the startlist and endlist
  477. ;strings and paste directly into this file on the appropriate
  478. ;lines; prevents errors due to typos when copying manually.
  479. ;Count the positions of filename, date, etc. and place on the
  480. ;appropriate line.  Now run the archiver redirected to a file
  481. ;to get its help screen (ex. "ARC > TEMP." or "ZOO h > TEMP.").
  482. ;Look for the various command options (extract, list, etc.) and
  483. ;put them into the file on the appropriate lines -- remember to
  484. ;add the modifiers to prevent the archiver from stopping to ask
  485. ;questions!  You could be in deep doo-doo if it's a detached
  486. ;process.  While it may seem a pain in the arse to have to
  487. ;edit this file when an archiver changes its command structure
  488. ;or list format, at least it's something within your control;
  489. ;you don't have to wait for an update to AV.  That means if I
  490. ;die tomorrow you'll still be able to use AV for years to come.
  491. ;
  492. ;Here's an example of an ARC listing (5.12mpl, command "ARC l"):
  493. ;
  494. ;----------------cut here----------------------
  495. ;Name          Length    Date
  496. ;============  ========  =========    <--this line is start-of-list
  497. ;MAKEFILE           374  28 Nov 89
  498. ;QSORT.C          14279  29 Nov 89
  499. ;QSORT.EXE        24629  29 Nov 89
  500. ;STUFF.H            371  29 Nov 89
  501. ;        ====  ========               <--this line is end-of-list
  502. ;Total      4     39653
  503. ;----------------cut here----------------------
  504. ;
  505. ;Note the filename is in position 0, old length in position 1, and the
  506. ;date starts in position 2, with 3 parts, and there's no new length
  507. ;field (so it'd be -1).  Compare that to the archiver entry for
  508. ;ARC 5.12mpl above and you should get a feel for what all those fields
  509. ;mean.  Here's a diagram of how a file line breaks down:
  510. ;
  511. ;STUFF.H            371  29 Nov 89
  512. ;  ^                 ^   ^
  513. ;  |                 |   |
  514. ;  |                 |   +--Date starts in field 2, 3 parts (29, Nov, and 89)
  515. ;  |                 |
  516. ;  |                 +--Old file length, field 1
  517. ;  |
  518. ;  +--Filename, field 0 (count from 0, not 1)
  519. ;
  520. ;
  521. ;If you're adding an entirely new archive format, note that you can
  522. ;use 'C'-style \x<hexnumber> on the signature line in this file.
  523. ;For example, the \x1a in ARC 5.12mpl's signature line means AV will
  524. ;look for an ASCII 26 (text EOF marker) in position 0 (first byte, as
  525. ;indicated by ARC's line 3, the offset into a file for the signature)
  526. ;of a file to determine if it's an archive.  If line 3's offset is
  527. ;negative, AV looks from the end of the file instead of the beginning.
  528. ;You can usually figure out what an archiver's signature is by looking
  529. ;at a few archives with a file viewing program like Vernon Buerg's 
  530. ;LIST.  By all means send me anything new you figure out for inclusion
  531. ;in future releases.
  532. ;
  533. ;
  534. ;You can have several entries for one type of archive in this file.  AV
  535. ;tries entries sequentially to list the file until it finds one that works.
  536. ;If the first entry for a signature doesn't work, and AV finds one that
  537. ;does, it moves that entry to the top of the list and rewrites ARCHIVER.BB2
  538. ;to make future accesses faster.  This allows me to list everything I can
  539. ;get entries for and let AV sort out what the user actually has that works.
  540. ;It also lets you, the user, create archives with more than one archiver that
  541. ;produces the same sort of archive (or with different switches, like one with
  542. ;LHArc producing -lh5- compression and one with it producing old, compatible
  543. ;-lh1- compression).
  544. ;
  545. ;
  546. ;always end file with blank line or comment
  547.