home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / ztb180.zip / ARCHIVER.BB2 next >
Text File  |  1999-09-17  |  14KB  |  505 lines

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