home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / source / util2src / mkzip.bat < prev    next >
Encoding:
DOS Batch File  |  1992-12-08  |  1.9 KB  |  50 lines

  1. :==============================================================================
  2. : MKZIP - Make ZIP file that contains source code. Brian E. Yoder
  3. :
  4. : This file creates a ZIP file that contains the source code and build
  5. : commands for the library and utilities in this directory.
  6. :
  7. : This command stores the list of files to be saved and then runs pkzip
  8. : to create the zipfile.  The current directory is used to store the list
  9. : file and zipfile.
  10. :
  11. : 04/22/91 - Created.
  12. : 04/22/91 - Initial version.
  13. : 05/06/91 - Put source and executables into utildsrc and utildexe zip files.
  14. : 09/10/91 - Change to reflect the latest makefile format.
  15. : 10/17/91 - Add grep.exe to list of executables.
  16. : 11/08/91 - Add *.ini files to list of source.
  17. : 03/26/92 - Add util.lib to list of source files.
  18. : 12/08/92 - Add du.exe to the list of executables.
  19. :==============================================================================
  20. :
  21. @echo off
  22.  
  23. :------------------------------------------------------------------------------
  24. : Delete old zipfiles if they exist
  25. :------------------------------------------------------------------------------
  26.  
  27. if exist utildsrc.zip del utildsrc.zip
  28. if exist utildexe.zip del utildexe.zip
  29.  
  30. :------------------------------------------------------------------------------
  31. : Make lists of files to save
  32. :------------------------------------------------------------------------------
  33.  
  34. echo Creating the list files...
  35. ls -g makefile *.bat *.c *.h *.txt *.ini util.lib >utildsrc.lst
  36.  
  37. ls ls.exe cdx.bat cdir.exe chmod.exe ccmt.exe ccp.exe *bm*.exe crc*.exe du.exe grep.exe >utildexe.lst
  38.  
  39. :------------------------------------------------------------------------------
  40. : Create the zip files
  41. :------------------------------------------------------------------------------
  42.  
  43. echo Creating the source zip file...
  44. pkzip utildsrc.zip @utildsrc.lst
  45.  
  46. echo Creating the executable zip file...
  47. pkzip utildexe.zip @utildexe.lst
  48.  
  49. echo Done.
  50.