Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. Tandem Port of Info ZIP (unzip)
  2. =======================
  3.  
  4. Recent changes:
  5. 1. Support UNZIPing of EDIT (text) files by use of the "-a" parameter
  6. 2. Changes for version 2.2 affected files:
  7. - TANDEMC     (changes to stat() to pass file creation time)
  8. - ZIPINFOC    (exclude TANDEM from tzset() test)
  9. 3. Fix to default time/date field to UK format (dd/mm/yyyy)
  10. 03/08/98  5.33f   Updates for TANDEMC/H to keep instep with ZIP (file buffering)
  11.                  New DOIT macro for extracting files from archive
  12.                  Fix in2ex to expand full vol/subvol depending on '-j' flag
  13. 17/08/98  5.33f   Set USE_EF_UT_TIME to allow for timezone changes
  14. 18/08/98  5.33f   Use define LICENSED to build object able to update timestamps
  15. 19/08/98  5.33f   Add -X flag support (restore file owner id) via unzip.c/h
  16.                  new chown function in tandem.c.
  17.                  Modified close_outfile to make the chown the last step.
  18. 30/11/98  5.41a  Updated mapname/chmod/in2ex, include licensing in MAKE
  19. 21/12/98  5.41a  Add decoding of new Tandem extra field EF_TANDEM
  20.                  Make '-a' default option.  Add '-b' option to force creation
  21.                  of 'C' filecode 180 type text files.
  22.                  If available populate Tandem file code (e.g. Object files)
  23.                  Rationalised TANDEMH and TANDEMC wth ZIP 2.3i
  24.                  Fixed MORE (-M flag) processing by creating zgetch()
  25. 12/01/99  5.41a  Correct bug stopping setting of last open timestamp
  26. 24/03/99  5.41b  Split TANDEMC into TANDEMC/TANZIPC/TANUNZC
  27. 24/03/99  5.41b  Added TANNSKH to allow for declarations which require
  28.                  structures defined in ZIPH after call to TANDEMH
  29. 07/05/99  5.41c  Assume not DST if can't resolve time (no DST table available)
  30. 01/06/99  5.41c  Add steps to make Self Extracting files (SFX)
  31. 12/01/01  5.42g  Fix problems with MAKE for WIDE objects, updated TANDEMC/H
  32.                  in line with ZIP, updated DOIT to remove TIMEZONE.C
  33.  
  34.                  If we ever want to use TIMEZONE.C then we need to set the
  35.                  define IZTZ_DEFINESTDGLOBALS, it then compiles OK.  The object
  36.                  would need to be added to the building of UNZIPLIB in make.
  37.  
  38. 09/02/01  5.50a  Added code to tandem.c to create files with appropriate
  39.                  extent sizes, or actual values if file was originally NSK
  40. 15/02/01         Update tandem.c to force first character to 'A' for Tandem
  41.                  filenames
  42. 12/04/01  5.50c  Fix problem with duff EF lengths in ef_scan_for_tandem
  43. 12/04/01         Change definition of nsk_attrs to allow for Wide mode and
  44.                  subsequent respecifications of procedures that use it
  45. 12/04/01         Fix bug in tanunz.c so that call to FILE_ALTERLIST_ has upper
  46.                  case filename
  47. 12/04/01         Update tandem.c to only allow '$' in in2ex as appropriate
  48. 16/07/01  5.50g  Fixed bug in tandem.c for incorrect use of slist_items rather
  49.                  than vlist_items
  50. 18/07/01         Allow edit files to be created with original extents
  51. 25/07/02  5.51b  Add "-r" remove file extensions command line option
  52. 07/08/02  5.51b  Non-Tandem non-text files now set to code 0 (not 100)
  53. 21/10/02  5.51b  Tandem Enscribe files containing text set to code 101
  54. 03/01/03  5.51b  Fix bug in extract of Text files - caused by Deflate64 changes
  55.                  which made various buffers 64k and mismatches with unsigned.
  56.                  Added NO_DEFLATE64 to MAKE and made this the default for
  57.                  non-WIDE mode. If DEFLATE64 is used and non-WIDE then it drops
  58.                  down to MED_MEM model for OUTBUFSIZ logic.
  59.  
  60. A few notes about the files on this subvol
  61.  
  62. COMMACS   -  required by MAKE, *** held on ZIP subvol ***
  63. DOIT      -  macro to extract required Tandem files from archive and rename
  64. MACROS    -  required by MAKE, *** held on ZIP subvol ***
  65. MAKE      -  recompile UNZIP code, attempts to only recompile changed code
  66. MAKESFX   -  make SFX header file
  67. README    -  this file
  68. UNZIPLIB  -  library of ZIP compiled routines, used by ZIP/ZIPNOTE etc
  69. UNZIPL    -  ZIP object (bound using LARGE memory model)
  70.  
  71. *C        -  Source file
  72. *H        -  Header files
  73. *O        -  Individual object files (when compiled by MAKE)
  74.  
  75. Install Notes:
  76. ==============
  77. Stage 1 - get UNZIP object onto Tandem
  78. - download Tandem Unzip executables archive from Web
  79. - using PC unzip program (e.g. pkunzip/WinZip) extract UNZIP
  80. - copy UNZIP from PC to Tandem in Binary mode s(FTP/IXF)
  81. - alter file code to 100
  82. - optionally place in $SYSTEM.SYSTEM to allow easy access from command line
  83.  
  84. Stage 2 - (optional) retrieve source code (requires UNZIP on Tandem)
  85. - download UNZIP source archive from web - contains all supported platforms
  86. - copy archive onto Tandem as Binary
  87. - extract Tandem DOIT macro ( UNZIP -j <archive> tandem/DOIT )
  88. - update DOIT macro to point at archive file
  89. - restore relevant files by running DOIT
  90. - replace references to $T with a collector on your system
  91. - replace references to SUPER.DAVES with whatever user id you use
  92. - to compile run MAKE (compiles, accelerates, licences)
  93. - NOTE:  Always run the accelerated object on TNS/R systems, otherwise
  94.          it runs extremely slow.
  95.  
  96.  
  97. Additional Notes - LICENSE the object:
  98. ======================================
  99. If you wish to be able to update the last modified time of files you unzip
  100. you need to add the line "#define LICENSED" to the TANDEMH file.  If you set
  101. this option you MUST FUP LICENSE the file as SUPER.SUPER.
  102. This is a Tandem restriction since we have to call a PRIV procedure to update
  103. the file label.  For UNZIP the define is setup (default) in tandem.h
  104.  
  105.  
  106. Additional Notes - Self Extracting
  107. ==================================
  108.  
  109. To create a Self Extracting (SFX) file you need to do the following
  110. - run the MAKESFX file to create the SFX object files
  111. - create a normal Zip file
  112. - create an empty Unstructured file
  113. - FUP COPY SFX into new file
  114. - FUP COPY your Zip file to the end of this new file
  115. - run ZIP -A <zipfile> to fix the internal pointers
  116. - alter the filecode of <zipfile> to 100 (I'll do this in Zip -A soon)
  117.  
  118. For performance you should Axcel the finished file.
  119.