Changeset 1269


Ignore:
Timestamp:
Nov 6, 2008, 5:11:10 AM (17 years ago)
Author:
John Small
Message:

Various corrections and wording/format improvements to config.ipf and arclist.ipf.

Location:
trunk/dll/ipf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/ipf/arclist.ipf

    r416 r1269  
    194194say about the archive when it was asked to list its contents, presented
    195195in an MLE, and allowed four choices&colon. :link reftype=hd
    196 res=94200.Edit the archiver details:elink., Test the archive (if you
     196res=94300.Edit the archiver details:elink., Test the archive (if you
    197197have told FM/2 how to test archives with this archiver in ARCHIVER.BB2),
    198198View the archive, or Cancel the whole thing.
  • trunk/dll/ipf/config.ipf

    r1122 r1269  
    128128.im command.ipf
    129129
    130 :h2 res=94200 name=PANEL_AD_FRAME.Editing Archiver Details
    131 :i1 id=aboutEditArc.Editing Archiver Details
    132 :p.
    133 This dialog box, which you can reach from the Config menu, allows you to
    134 the details of your :link reftype=hd res=100015.archiver:elink.. On the right side are a series of buttons to manage your archivers&colon.
    135 :p.
    136 :hp1.Up&colon.:ehp1. Moves the highlighted archiver up in the archive list.
    137 :p.
    138 :hp1.Down&colon.:ehp1. Moves the highlighted archiver down in the archive list.
    139 :p.
    140 :hp1.Add&colon.:ehp1. Add brings up a blank archiver details box so you can define a new archiver type.
    141 :p.
    142 :hp1.Delete&colon.:ehp1. Deletes the archiver description of the highlighted archiver.
    143 :p.
    144 :hp1.Revert&colon.:ehp1. Revert undoes all changes made during the current session. It will not undo changes once the new ARCHIVER.BB2 has been written.
    145 :p.
    146 
    147 To open the Archiver details box to edit an existing archiver highlight the archiver and select Okay.
    148 Entry boxes are present for all the twenty one fields represented in ARCHIVER.BB2
    149 (the text file that contains control information about your archivers,
    150 which FM/2 uses to interface with the archivers). It's probably as easy for most people to edit
    151 :link reftype=hd res=100130.ARCHIVER&period.BB2:elink. directly with a text editor.
    152 The Cancel button will bring up a dialog asking you if you wish to rewrite ARCHIVER.BB2
    153 select yes if you do. The new file will be written one generation of backup is kept it is
    154 named Archiver.BAK
    155 :p.
    156 :hp1.NOTE&colon.:ehp1. The simplest method to ensure that your archivers
    157 work properly with FM/2 is to make sure they're in a directory named in
    158 your PATH= statement, and check the names of the files to make sure they
    159 match what's on your system (i.e. UNZIP.EXE in both ARCHIVER.BB2 and on
    160 your hard disk, not UNZIP.EXE in one and UNZIP32.EXE in another). Alternatively, full path names can be used in ARCHIVER.BB2.
    161 :p.
    162 In the event that you attempt to list an archive and FM/2 feels you've
    163 probably bungled the entry in ARCHIVER.BB2, you'll be given an
    164 opportunity to use this dialog to fix the entry. In this case, you'll
     130:h2 res=94200 name=PANEL_AD_FRAME.Editing Archivers
     131:i1 id=aboutEditArc.Editing Archivers
     132:p.
     133This dialog box, which you can reach from the Config menu, allows you to manage your
     134:link reftype=hd res=100015.archivers:elink..
     135:p.
     136On the left side is a list of the currently defined archivers for FM/2. On the right side are a series of buttons&colon.
     137:dl compact.
     138:dthd.:hp2.Up:ehp2.:ddhd.Moves the highlighted archiver up in the archive list. (See note below.)
     139:dthd.:hp2.Down:ehp2.:ddhd.Moves the highlighted archiver down in the archive list. (See note below.)
     140:dthd.:hp2.Add:ehp2.:ddhd.Add brings up a blank archiver details box so you can define a new archiver type.
     141:dthd.:hp2.Delete:ehp2.:ddhd.Deletes the archiver description of the highlighted archiver.
     142:dthd.:hp2.Revert:ehp2.:ddhd.Revert undoes all changes made during the current session. It will not undo changes once the new ARCHIVER.BB2 has been written.
     143:edl.
     144:note.When FM/2 determines which archiver to use on a file, they are checked in order of this listing.
     145:p.
     146The specifics of which archivers FM/2 can use and how FM/2 will use them are stored in a file named
     147:link reftype=hd res=100130.ARCHIVER&period.BB2:elink..
     148This file is located in the FM/2 installation directory and may be edited manually with a text editor.
     149:p.
     150Alternatively FM/2 also provides a GUI which can be used to edit a specific archiver. Simply select
     151the archiver you wish to edit and select the
     152:hp2.Edit button:ehp2.
     153at the bottom.
     154:p.
     155When the
     156:hp2.Cancel button:ehp2.
     157is selected a dialog asking you if you wish to rewrite
     158ARCHIVER.BB2 will appear if changes have been made.
     159
     160:h3 res=94300 name=PANEL_ARCFLDS.Archiver Details Fields
     161:i1 id=aboutArcFlds.Archiver Details Fields
     162:p.
     163:hp2.
     164.ce Archiver Details: General Notes
     165:ehp2.
     166:note.In order for an archiver to work properly, make sure
     167:ol compact.
     168:li.the program(s) is/are in a directory named in your PATH. (Alternatively, full path names can be used.)
     169:li.the DLL's the programs need, if any, are in the LIBPATH.
     170:li.the names of the programs are entered correctly.
     171:li.the command syntax is correct and does not prompt for further input.
     172:li.the start and end of list strings, if any, are correct.
     173:li.the signature and signature position, if any, are correct.
     174:eol.
     175:p.
     176In the event that an error occurs when you attempt to list an archive,
     177you'll be given an
     178opportunity to use this dialog to fix the entry. In this case, you will
    165179see the listbox at the right of the dialog filled with the listing of
    166180the archive that your archiver made. You can highlight a line and click
     
    174188the wrong fields for filenames.
    175189:p.
    176 You may still need to refer to your archiver's documentation, or run it
    177 to get the help on its command syntax. FM/2 can't do everything for you,
    178 but it holds your hand as best it can.
    179 :p.
    180 Refer to the ARCHIVER.BB2 file that came with FM/2 for additional
    181 information and an example.
     190FM/2 can't do everything for you. You may still need to refer to your
     191archiver's documentation and/or run it
     192to get the help on its command syntax, the format used when listing the
     193contents of archives and/or its signature info.
    182194:p.
    183195When you've completed editing the archiver's details, click Okay. FM/2
    184 will ask you if you want to rewrite ARCHIVER.BB2 (be sure you save the
    185 original copy for its complete notes; FM/2 will back it up one version to
    186 ARCHIVER.BAK). If you don't rewrite ARCHIVER.BB2, changes are good only
     196will ask you if you want to rewrite ARCHIVER.BB2. If you don't
     197rewrite ARCHIVER.BB2, changes are good only
    187198for the current session (handy for testing).
    188199:p.
    189 You can also get to this dialog box from Select Files' Config submenu.
    190 :p.
    191 See also&colon.
    192 :p.
    193 :link reftype=hd res=94300.Archiver Details Fields:elink.
    194 
    195 :h3 res=94300 name=PANEL_ARCFLDS.Archiver Details Fields
    196 :i1 id=aboutArcFlds.Archiver Details Fields
     200One generation of backup for ARCHIVER.BB2 is kept. It is named Archiver.BAK.
     201:p.
     202:hp2.
     203.ce Archiver Details: Fields
     204:ehp2.
    197205:p.
    198206:hp2.ID:ehp2. This field contains an ID for the archiver; something for
     
    287295Archive listing fields are numbered from 0.
    288296The file name position item consists of 4 subfields separated by commas.
    289 All subfields must be present and correct for FM/2 to get the right
    290 file names from the archive listing.
    291297The first is the field number.
    292298The second is a flag which is set to 1 to indicate that the file
     
    328334:p.
    329335:hp2.Date Pos(ition):ehp2. This field tells FM/2 which field on
    330 the line of an archive listing is where the time/datestring is. If this
    331 isn't available or you don't care about it, you can enter a -1 to
     336the line of an archive listing is the date/time string. If this
     337isn't available or if you don't care about it, you can enter a -1 to
    332338disable detection of this field entirely. You can optionally follow this
    333339number with a comma and another number that indicates the type of the
     
    337343 0 = No date in data
    338344 1 = 02-08-96  23&colon.55&colon.32 mm-dd-yy hh&colon.mm&colon.ss
    339  2 = 8 Feb 96  23&colon.55&colon.32 dd-Mmm-yy hh&colon.mm&colon.ss
     345 2 = 8 Feb 96  23&colon.55&colon.32 dd Mmm yy hh&colon.mm&colon.ss
    340346 3 = 8 Feb 96  11&colon.55p   dd Mmm yy hh&colon.mmA
    341  4 = 96-02-08  23&colon.55&colon.32 yy-mm-dd mm&colon.mm&colon.ss
     347 4 = 96-02-08  23&colon.55&colon.32 yy-mm-dd hh&colon.mm&colon.ss
    342348 5 = 31-02-98  23&colon.55    dd-mm-yy hh&colon.mm
    343349:exmp.
     
    363369:p.
    364370Here's an example of an ARC listing (5.12mpl, command "ARC l"; you may
    365 need to widen the help windows for this to look right...):
    366 :p.
     371need to widen the help windows for this to look right...)&colon.
    367372:xmp.
    368373Name           Length     Date
     
    385390:i1 id=aboutArcBB2.ArchiverBB2 Structure
    386391:p.
    387 The first line in the file is the number of lines/definition in the archiver.bb2 file. It is very important; do not change.  It allows modifications to the
    388 file format to be transparent to older programs.
    389 
    390 Format for this archiver.bb2 file (each entry has 21 lines)&colon.
    391 :p.
    392 1st line&colon. archiver id (i.e. ARC, LHARC, PKZIP, etc.) for human consumption
    393 :p.
    394 2nd line&colon.  normal extension for archives without period  (i.e ZIP, ARC, LZH)
    395 :p.
    396 3rd line&colon.  offset into file to signature (leave blank if no signature)
    397 :p.
    398 4th line&colon.  list command
    399 :p.
    400 5th line&colon.  extract command
    401 :p.
    402 6th line&colon.  extract with directories command
    403 :p.
    404 7th line&colon.  test archive command
    405 :p.
    406 8th line&colon.  add/create command
    407 :p.
    408 9th line&colon.  add/create with paths command
    409 :p.
    410 10th line&colon.  add/create and recurse command
    411 :p.
    412 11th line&colon.  move command
    413 :p.
    414 12th line&colon.  move with paths command
    415 :p.
    416 13th line&colon.  delete command
    417 :p.
    418 14th line&colon.  signature (case sensitive, leading spaces count!)
    419 :p.
    420 15th line&colon.  startlist string
    421 :p.
    422 16th line&colon.  endlist string
    423 :p.
    424 17th line&colon.  old size position (0-based, -1 = not available)
    425 :p.
    426 18th line&colon.  new size position  (0-based, -1 = not available)
    427 :p.
    428 19th line&colon.  file date position (0-based, -1 = not available) [,type of date (0 for none)]
    429 :p.
    430 20th line&colon.  number of elements in dates (for "03 June 92" would be 3)
    431 :p.
    432 21st line&colon.  file name position (absolutely required, of course; -1 = last pos)[,name is last (1 = TRUE, n/a w/ -1 pos)[name is next line (1 = TRUE)[,name is first line, then rest of data (1 = TRUE)]]]
    433 :p.
    434 see ZOO entry for example of -1 in file name position
    435 :p.
    436 see LH entry for example of name is last
    437 :p.
    438 see RAR 2.00 entry for example of name is first
    439 :p.
    440 check listings generated by these programs for clarification
    441 :p.
    442 A semicolon marks a comment.  They may appear at any point *except*
    443 within the 21 lines of an archiver definition entry.  Comments are ignored.
    444 Archiver definition entries that contain numeric values may have trailing comments. Archiver definition lines that contain strings do not support trailing comments.
    445 :p.
    446 Blank lines are ignored except within a 21 line archiver definition entry. A blank line with a definition entry will be treats as either an empty string or the number 0, depending on what content is expected for the definition line.
    447 :p.
    448 Note that all archiver command strings should include the archiver's parameter to
    449 prevent it from prompting for input!  Also note that archive types are checked
    450 in order of their listing in this file.  Finally, this file is set up for
    451 the archivers I had lying around. If yours are different versions, you may
    452 have to modify this file.  All archivers are OS/2 (or FAPI) versions.
    453 DOS archivers may work with FM/2, but it'll be up to you to set them up.
    454 
     392ARCHIVER.BB2 is a text file and can be viewd or edited with any text editor. It contains are three types of lines&colon.
     393:ol compact.
     394:li.The first line in the file is the number of lines per archiver definition in the ARCHIVER.BB2 file.
     395It is very important; do not change it.
     396It allows modifications to the file format to be transparent to older programs.
     397:li.Comment lines.
     398:ul compact.
     399:li.Comment lines are optional but recommended.
     400:li.A semicolon in column 1 marks a comment line.
     401:li.Comment lines may appear anywhere :hp3.except:ehp3. within the lines of an archiver definition entry.
     402:li.Comments are ignored and are used to provide human-readable notes and/or "white space" for visually separating blocks of lines.
     403:eul.
     404:li.Lines which provide a definitions for archivers.
     405:ol compact.
     406:li.Each archiver is defined by a set of :hp2.consecutive:ehp2. lines.
     407:li.The number of these lines is set by the first line of the file. Currently it is 21.
     408:li.Each line is described below.
     409:ol compact.
     410:li.archiver id  string for human consumption (e.g. ARC, LHARC, PKZIP)
     411:li.normal extension for archives without period  (e.g. ZIP, ARC, LZH)
     412:li.offset into file to signature (0-based, leave blank if no signature)
     413:li.list command
     414:li.extract command
     415:li.extract with directories command
     416:li.test archive command
     417:li.add/create command
     418:li.add/create with paths command
     419:li.add/create and recurse command
     420:li.move command
     421:li.move with paths command
     422:li.delete command
     423:li.signature (case sensitive, leading spaces count!)
     424:li.startlist string
     425:li.endlist string
     426:li.old size position (0-based, -1 = not available)
     427:li.new size position  (0-based, -1 = not available)
     428:li.file date/time, specified by two comma-separated numbers&colon.
     429:ol compact.
     430:li.position (0-based, -1 = not available)
     431:li.type code&colon.
     432:dl compact.
     433:dthd.0:ddhd.No date in the data
     434:dthd.1:ddhd.mm-dd-yy hh&colon.mm&colon.ss    (e.g. 02-31-98  23&colon.55&colon.32)
     435:dthd.2:ddhd.dd Mmm yy hh&colon.mm&colon.ss   (e.g. 31 Feb 98 23&colon.55&colon.32)
     436:dthd.3:ddhd.dd Mmm yy hh&colon.mmA     (e.g. 31 Feb 98  11&colon.55p)
     437:dthd.4:ddhd.yy-mm-dd hh&colon.mm&colon.ss    (e.g. 98-02-31 23&colon.55&colon.32)
     438:dthd.5:ddhd.dd-mm-yy hh&colon.mm       (e.g. 31-02-98  23&colon.55)
     439:edl.
     440:eol.
     441:li.number of elements/fields in dates (e.g. "03 June 92" would be 3)
     442:li.file name, specified by up to four comma-separated numbers (only the first number is required)&colon.
     443:ol compact.
     444:li.0-based position number of the file name (required; -1 = last pos on the line). See ZOO entry for an example of -1 in file name position
     445:li.1 = name starts at filename-position (previous number on this line) and extends to the end of the line (0 = otherwise; n/a w/ position = -1), See LH entry for an example of this
     446:li.1 = the file name starts at the second character of the field (0 otherwise).
     447:li.1 = two lines for each file listed with file name on first line (0 otherwise). See RAR 2.00 entry for an example of this
     448:eol.
     449:eol.
     450:eol.
     451:eol.
     452:p.
     453Additional notes:
     454:ul compact.
     455:li.All archiver command strings should specify a command which does :hp2.not:ehp2. prompt for further input!
     456:li.Archiver definition entries that contain numeric values may have trailing comments.
     457:li.Archiver definition lines that contain strings do not support trailing comments.
     458:li.Blank lines are ignored except within a 21 line archiver definition entry.
     459:li.A blank line within a definition entry will be treated as either an empty string
     460or the number 0, depending on what content is expected for the definition line.
     461:eul.
     462:p.
     463For additional information see&colon.
     464:ul compact.
     465:li.Help for :link reftype=hd res=94300.Archiver Details:elink.
     466:li.The ARCHIVER.TMP file, located in the TMPLATES subdirectory of where FM/2 is installed. (This is the default version
     467of ARCHIVER.BB2 which is distributed with FM/2.)
     468:eul.
     469
Note: See TracChangeset for help on using the changeset viewer.