home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / COMPRESS / UNIPAK36.ZIP / UNIPAK.TXT < prev    next >
Encoding:
Text File  |  1989-04-02  |  4.6 KB  |  131 lines

  1.                                 UNIPAK/UNIUNPAK
  2.  
  3.                                     by  Douglas E. MacLean
  4.                                         2200 Ocean Avenue Apt. 6B
  5.                                         Brooklyn, New York 11229
  6.                                         SysOp on the Vernon BBS
  7.                                         (201) 827-6441
  8.                                         1200/2400 24 hours a day
  9.  
  10.  
  11.  
  12.  
  13.  
  14.     With the advent of the ZIP compression format, many programs will
  15.     have to be modified to recognize both ARC and ZIP file formats.
  16.     UNIPAK and UNIUNPAK are universal programs that will decide with
  17.     format to use and call to correct program.  For example:
  18.  
  19.  
  20.                 uniunpak -v qmail.qwk
  21.  
  22.     will view the files in the archive.  If qmail.qwk was compressed
  23.     with pkzip than the command executed will be:
  24.  
  25.                 pkunzip -v qmail.qwk
  26.  
  27.     If the pkpak program was used the command executed would be
  28.  
  29.                 pkunpak -v qmail.qwk
  30.  
  31.     All of this is transparent to the user.  In a qmail reader, door or
  32.     any program that uses archiving, substitute the universal command in
  33.     the file that designates the compression program to use.  You will
  34.     than be able to unpack any type of file.
  35.  
  36.     Since the options for compression are more complicated that unpacking
  37.     the UNIPAK program uses three environmental variables to permit
  38.     the user the most control possible.  If now extention (ARC or ZIP) is
  39.     provided than the default will be to make a ZIP file.  This can be
  40.     overriden by the use of the UNIDEF environmental variable.
  41.  
  42.                 set UNIDEF=arc
  43.  
  44.     will tell UNIPAK to default to ARC format if no file type is given in
  45.     the filename.
  46.  
  47.                 unipak -a source *.c
  48.  
  49.     will process all 'C' files into a compressed file named "source".  If
  50.     the UNIDEF variable was not set "source.zip"  will be created.  If the
  51.     UNIDEF variable was set to arc as above the file created will be
  52.     "source.arc".
  53.     
  54.  
  55.     The zip format offers options to control the compression degree and
  56.     the speed of the compression.  These options can be set in UNIPAK by
  57.     using the UNIBIN and UNIASC variables.  UNIBIN controls the
  58.     binary compression while the UNIASC variable controls the ascii
  59.     compression.
  60.     
  61.     
  62.                 set UNIBIN=-eb4
  63.                 set UNIASC=-ea4
  64.  
  65.     This will tell UNIPAK to ZIP files using these compression parameters.
  66.  
  67.     The UNIUNPAK program will now take the default type from the UNIDEF
  68.     variable.  COmmands like:
  69.  
  70.                 uniunpak test *.txt
  71.  
  72.     will extract the txt files from whatever type of file test is.
  73.  
  74.     If the wrong file type is given to a program it will attempt to
  75.     determine the correct file type.  For example, if an application
  76.     forces the zip extent on a file name and you are trying to view
  77.     the contents of the file test.arc  the command
  78.  
  79.                 unipak -v test.zip
  80.  
  81.     the UNIPAK program will look to see if test.zip exists.  If it doesn't
  82.     it will look for test.arc.  If this is found the correct routine
  83.     is called to list the files in test.arc.
  84.    
  85.     Update for version 3.0:
  86.     
  87.     UNIPAK and UNIUNPAK will correctly process file names without extentions.
  88.  
  89.              UNIUNPAK -v test
  90.  
  91.    will loop through all files named test looking for a zip or arc file and
  92.    correctly process it.
  93.  
  94.    Update for verison 3.1:
  95.  
  96.    Addition code to improve looking for file names without extentions.
  97.  
  98.    Update for version 3.2:
  99.    
  100.    Made into a COM file via Turbo 'C' version 2.0
  101.    Corrected error with no extention arc files
  102.  
  103.    Update for version 3.3:
  104.    
  105.    The source code was merged into one file.  This has the advantage
  106.    of not having to apply fixes for UNIPAK to UNIUNPAK and vice versa.
  107.  
  108.    A bug was corrected that gave improper results were the DOS environmental
  109.    parameters were not set.  If you want to default to using the new
  110.    optimization switch, -ex, from version 0.92 set either of UNIBIN or
  111.    UNIASC to -ex.  
  112.  
  113.    Update for version 3.4
  114.    
  115.    Corrected bug if only UNIASC was set.
  116.  
  117.    Update for version 3.5
  118.  
  119.    Corrected bug when extension is improperly set by command line.
  120.  
  121.    Update for version 3.6
  122.  
  123.    Fixed some minor bugs.  Now includes support for 80286 machines.
  124.    Rename Uni*.286 to uni*.com if you have a 80286/386 machine.
  125.    
  126.  
  127.    A lot of hard work went into this program.  If you would like to
  128.    support this program please send a contribution to the above address.
  129.    A contribution of $15 or more will also come with a subscription for
  130.    the Vernon BBS for a year.
  131.