home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / cpm / cpm68k / xlu68k.lbr / XLU68K.DQC / XLU68K.DOC
Encoding:
Text File  |  1986-11-16  |  15.9 KB  |  276 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                 XLU68K - Extended Library Utility for CP/M-68K                XLU68K - Extended Library Utility for CP/M-68K                XLU68K - Extended Library Utility for CP/M-68K
  11.  
  12.                                  Robert Heller                                 Robert Heller                                 Robert Heller
  13.                                Mon Nov 10, 1986                               Mon Nov 10, 1986                               Mon Nov 10, 1986
  14.  
  15.                 (c) 1986 By Robert Heller. All rights reserved.                (c) 1986 By Robert Heller. All rights reserved.                (c) 1986 By Robert Heller. All rights reserved.
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.                ABSTRACT.  This  manual  describes  how to use the               ABSTRACT.               ABSTRACT.
  25.                CP/M-68K version library utility.    This  utility
  26.                is closely  modeled  after  Gary P.  Novosielski's
  27.                LU utility.    The  library  file  uses  the  same
  28.                internal    format    and   is   compatable   with
  29.                LU310.COM.  There are some differences,  including
  30.                the  inclusion  of  SQ  and USQ, allowing squeezed
  31.                members to be unsqueezed upon extraction  and  new
  32.                members to be squeezed upon insertion.
  33.  
  34.  
  35.  
  36.  
  37.                CONTACT INFO. I can be reached as follows:               CONTACT INFO.               CONTACT INFO.
  38.  
  39.                ARAPNet:      Heller@UMass-CS.CSNET
  40.                BITNET:       Heller@UMass.BITNET
  41.                BIX:          heller
  42.                GEnie:        RHeller
  43.                FidoNet:      101/27 (Dave's Fido)
  44.                U.S. Mail:    Robert Heller
  45.                              Star Route Box 51A
  46.                              Wendell, MA 01379
  47.                Voice Phone:  617-544-6933, early evenings
  48.                                            (before 7:30 PM
  49.                                            Eastern), and
  50.                                            weekends.
  51.                              413-545-0528, Monday to Friday
  52.                                            8:00 AM to 4:00 PM
  53.                                            Eastern.
  54.                Data Phone:   617-544-6933, 7:30 PM to 7:00 AM
  55.                                            Eastern.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.               XLU68K - Extended Library Utility for CP/M-68K              Page 2              XLU68K - Extended Library Utility for CP/M-68K              XLU68K - Extended Library Utility for CP/M-68K
  69.  
  70.  
  71.                            Section 1: Introduction.                                      Introduction.                                      Introduction.
  72.  
  73.                This  utility  is  very  usefull for storing a group of
  74.           related files in a compressed form as a single  super  file.
  75.           This  aids  in  transport (only one file to upload/download)                                          one                                          one
  76.           and  saves  disk  space  for  infrequently  accessed  source
  77.           code.    The   utility  is  designed  to  work  both  as  an
  78.           interactive  utility  as  well  as  a  command-line   driven
  79.           program for use in batch processing.
  80.  
  81.                      Section 2: Invoking LU From The CCP.                                Invoking LU From The CCP.                                Invoking LU From The CCP.
  82.  
  83.                LU is invoked as any other Transient Utility:
  84.  
  85.           A>LU {commands-and-filenames}          A>LU {commands-and-filenames}
  86.  
  87.           If  invoked  with  no arguments (except I/O redirection), LU
  88.           enters interactive command mode.  Since it  is  coded  in  C
  89.           and  is linked with DRI's CLIB, I/O redirection and wildcard
  90.           processing  is  done  as  described  in   the   C   Language
  91.           Programming Guide  (sections  1.5  and  1.8).   LU will echo
  92.           redirected input to the  standard  output  stream  while  in
  93.           interactive mode.    Thus the output will "look" the same as
  94.           if you had typed the commands by hand.  Error  messages  are
  95.           sent  to  standard  error,  so  you will still see them when
  96.           standard output is redirected.
  97.  
  98.                         Section 3: Command Processing.                                   Command Processing.                                   Command Processing.
  99.  
  100.                Commands are specified either on the command line  with
  101.           a   dash   preceding   the   command  letter(s)  or  at  the
  102.           interactive prompt, also with a dash preceding  the  command
  103.           letter(s).   Most  commands  take  one  or  more paramaters,
  104.           which  follow  the  command  with  one  or  more  whitespace
  105.           characters  separating  the  parameters from the command and
  106.           each other.  Commands defined for this version of LU are:
  107.  
  108.             Command    Function                           Parameters
  109.             =======    ===============================    ==========
  110.               -o       Open library file                  Library file
  111.               -c       Close library file
  112.               -x       Exit LU
  113.               -e       Extract file(s)                    Members
  114.               -eu      Extract and unsqueeze              Members
  115.               -a       Add or replace file(s)             Filenames
  116.               -as      Add or replace file(s), squeezed   Filenames
  117.               -l       List files in library
  118.               -k       Kill file(s) in library            Members
  119.               -r       Reorganize library
  120.               -h       Help text (command listing)
  121.               -?       Help text (command listing)
  122.  
  123.                            Table 1: LU Command List.                           Table 1: LU Command List.                           Table 1: LU Command List.
  124.  
  125.           In interactive mode, the last command  is  included  in  the
  126.           prompt   as   a   reminder.  Additional  parameters  can  be
  127.           specified until a new command is entered.  In  command  line
  128.           mode, a  -x  is  assumed at the end of the command line.  An                   -x                   -x
  129.  
  130.  
  131.  
  132.  
  133.  
  134.               XLU68K - Extended Library Utility for CP/M-68K              Page 3              XLU68K - Extended Library Utility for CP/M-68K              XLU68K - Extended Library Utility for CP/M-68K
  135.  
  136.  
  137.           End-Of-File condition on the command input  stream  (whether
  138.           redirected or  entered  as a ^Z) also forces a -x.  Standard                                                         -x                                                         -x
  139.           CP/M-68K wildcards are allowed for members  (for  extraction
  140.           and  deletion)  and  for filenames (for addition), on either
  141.           the command line or interactively (member  names  with  wild
  142.           cards  need  to be enclosed in quote marks if entered on the
  143.           command line to prevent the CP/M-68K C startup routine  from
  144.           trying to do a directory search on the member names).
  145.  
  146.                  Section 3: Opening and Closing Library Files.                            Opening and Closing Library Files.                            Opening and Closing Library Files.
  147.  
  148.                A library  file  is  opened  with the -o command.  This                                                     -o                                                     -o
  149.           command takes one  parameter:    the  name  of  the  library
  150.           file.    A  file  type  of  .LBR  is  used  if  no  type  is                                      .LBR                                      .LBR
  151.           specified.  A library file must be  open  before  any  other                                     must                                     must
  152.           operation except  the  exit  operation  can be done.  If the
  153.           library file does not exist, it will be created.   You  will
  154.           be asked  for  the number of entries to reserve.  The number
  155.           will be  adjusted  to  allow  room  for  the  directory  and
  156.           rounded up to a multiple of 4.
  157.  
  158.                A library  file  is  closed  with the -c command.  This                                                     -c                                                     -c
  159.           command takes  no  arguments.    A  library  file  will   be
  160.           automatically  closed  if  the  exit  command  is  given  or
  161.           assumed, so it is not  neccessary  to  explicity  close  the
  162.           library before you exit.
  163.  
  164.              Section 4: Adding and Replacing Members in a Library.                        Adding and Replacing Members in a Library.                        Adding and Replacing Members in a Library.
  165.  
  166.                Members  are  added  or  replaced  with  the -a and -as                                                            -a     -as                                                            -a     -as
  167.           commands.   Both  of  these  commands  take   filenames   as
  168.           parameters.  Wildcards  are  allowed.    Filenames  can also
  169.           have  either  a  drive  letter  (A:-P:)  or  a  user  number
  170.           (0:-15:)  in front. The -a command adds the file as is, with                                  -a                                  -a
  171.           no compression. The -as command squeezes the file  and  then                              -as                              -as
  172.           adds  it,  the  member name's type being changed as SQ would
  173.           change it.  This makes it look like it would if SQ had  been
  174.           used  to  do  the  squeezing  outside of LU, as is done with
  175.           most versions of  LU.    The  squeezing  process  creates  a
  176.           temporary  file which is deleted when the squeezed member is
  177.           added or replaced.  In either case, the  number  of  sectors
  178.           is displayed  when  the  addition is completed.  If a member
  179.           is replaced, the directory entry is updated,  but  the  data
  180.           is added  to  the  end  of  the  library file.  The old data
  181.           becomes inaccessable.   You  will  need  to  reorganize  the
  182.           library if the fragmentation gets too bad.
  183.  
  184.                  Section 5: Extracting Members from a library.                            Extracting Members from a library.                            Extracting Members from a library.
  185.  
  186.                Members  are  extracted  with  the -e and -eu commands.                                                  -e     -eu                                                  -e     -eu
  187.           Both of these  commands  take  member  names  as  arguments.
  188.           Wild  cards  are allowed. The -e command extracts members as                                        -e                                        -e
  189.           is and the -eu command will try  to  unsqueeze  the  member.                     -eu                     -eu
  190.           If  the  member  failes to unsqueeze, it is extracted as is.
  191.           Actually it is first  extracted  to  a  temp  file  and  the
  192.           unsqueezer is  called.    If  the  unsqueeze fails, the temp
  193.           file is  renamed  to  the  member  name  and  a  message  is
  194.           issued.    If  the  unsqueeze  succeds,  the  temp  file  is
  195.  
  196.  
  197.  
  198.  
  199.  
  200.               XLU68K - Extended Library Utility for CP/M-68K              Page 4              XLU68K - Extended Library Utility for CP/M-68K              XLU68K - Extended Library Utility for CP/M-68K
  201.  
  202.  
  203.           deleted.  Thus the -eu command can be used  to  extract  all                             -eu                             -eu
  204.           members whether they are squeezed or not.
  205.  
  206.                   Section 6: Deleting Members from a Library.                             Deleting Members from a Library.                             Deleting Members from a Library.
  207.  
  208.                Members   are  deleted  from  a  library  with  the  -k                                                                    -k                                                                    -k
  209.           command.  This command takes  member  names  as  parameters.
  210.           Wildcards are  allowed.    The space used by deleted entries
  211.           is not reclaimed until the library is reorganized.
  212.  
  213.                  Section 7: Listing the Contents of a Library.                            Listing the Contents of a Library.                            Listing the Contents of a Library.
  214.  
  215.                The contents of a library can be listed  out  with  the
  216.           -l command.    This   command  takes  no  parameters.    The          -l          -l
  217.           information  listed  includes  the  names  of   the   active
  218.           members,  their offsets, lengths, and CRC values, as well as
  219.           the total number  of  used  and  deleted  sectors,  and  the
  220.           number   of   active,  deleted,  and  free  entries  in  the
  221.           directory.  The CRC values are listed,  but  since  the  CRC
  222.           calculation   routine   does   not  work  (and  its  use  is
  223.           disabled), these values are not  used.    Libraries  created
  224.           and  modified  by  this version of LU will allways have zero
  225.           in the CRC slots  in  the  directories.    Also,  the  other
  226.           defined  directory  entry fields (creation date & time, last
  227.           modification date and time, and  pad  count)  are  also  not
  228.           used and are set to zero.
  229.  
  230.                       Section 8: Reorganizing a Library.                                 Reorganizing a Library.                                 Reorganizing a Library.
  231.  
  232.                A   library   file  can  be  reorganized  with  the  -r                                                                    -r                                                                    -r
  233.           command.  Reorganizing is done by simply copying the  active
  234.           parts  of  the file to a temporary file and deleting the old
  235.           library (if it is on the default drive and user  area),  and
  236.           renaming the  temporary file to the library file name.  This
  237.           command is used when the library gets too fragmented  or  if
  238.           more directory entries are needed.
  239.  
  240.                       Section 9: Miscellanious Commands.                                 Miscellanious Commands.                                 Miscellanious Commands.
  241.  
  242.                The  remaining  commands,  -x,  -h, and -?, are used to                                          -x   -h      -?                                          -x   -h      -?
  243.           exit the Library Utility (-x) and get a brief  help  listing                                    -x                                    -x
  244.           (-h or -?).    Neither  take any parameters.  The -x command           -h    -?                                         -x           -h    -?                                         -x
  245.           is assumed at the end of the command line (when  in  command
  246.           line  mode)  or  if  End-Of-File  is  reached on the command
  247.           input stream (when in interactive command  mode).    The  -?                                                                    -?                                                                    -?
  248.           command  is  the  initial  default  command when interactive
  249.           mode starts up.
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.   command  is  the  initial  default  command when interactive
  266.           mode starts up.
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.