home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip531.zip / vms / makesfx.com < prev    next >
Text File  |  1994-08-11  |  1KB  |  31 lines

  1. $!
  2. $!  MAKESFX.COM:  command-procedure to create self-extracting ZIP archives
  3. $!                usage:  @MAKESFX foo    (foo.zip -> foo.exe)
  4. $!
  5. $!  Martin P.J. Zinser 940804
  6. $!
  7. $!
  8. $!  For this to work a symbol unzipsfx has to be defined which contains the 
  9. $!  location of the unzip stub (e.g., unzipsfx:== device:[dir]unzipsfx.exe)
  10. $!
  11. $!  The zipfile given in p1 will be concatenated with unzipsfx and given a
  12. $!  filename extension of .exe.  The default file extension for p1 is .zip
  13. $!
  14. $!  Use at your own risk, there is no guarantee here.  If it doesn't work,
  15. $!  blame me (m.zinser@gsi.de), not the people from Info-ZIP.
  16. $!
  17. $!
  18. $ inf = "''p1'"
  19. $ usfx = f$parse("''unzipsfx'") - ";"
  20. $ file = f$parse("''inf'",,,"DEVICE") + f$parse("''inf'",,,"DIRECTORY") + -
  21.   f$parse("''inf'",,,"NAME") 
  22. $ finf = "''file'" +f$parse("''inf'",".ZIP",,"TYPE") + -
  23.   f$parse("''inf'",,,"VERSION")
  24. $!
  25. $! [GRR 940810:  what is the point of 'name'?  example?  commented out...]
  26. $! $ name = f$extract(12,2,f$time()) + f$extract(15,2,f$time()) + -
  27. $!   f$extract(18,2,f$time()) + f$extract(21,1,f$time())
  28. $!
  29. $ copy 'usfx','finf' 'file'.exe
  30. $ exit
  31.