home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / komix / DATA.Z / ot_unarchive.bat < prev    next >
DOS Batch File  |  1997-10-15  |  508b  |  26 lines

  1. @echo off
  2. rem
  3. rem %W% %G%
  4. rem
  5. rem Script to uncompress and unarchive a repository or project directory.
  6. rem
  7. rem Assumes that %M4_home% has been set correctly.
  8. rem
  9.  
  10. set tarcmd=%M4_home%\contrib\modules\archivecmds-win\bin\gnu-tar.exe
  11. set zipcmd=%M4_home%\contrib\modules\archivecmds-win\bin\gnu-gzip.exe
  12.  
  13. set src=%1
  14. set tmp=%1.tar
  15.  
  16. echo Uncompressing archive %src% ...
  17. %zipcmd% -d -c %src% >%tmp%
  18. echo.
  19.  
  20. echo Untarring archive %tmp% ...
  21. %tarcmd% xf %tmp%
  22. del %tmp%
  23. echo.
  24.  
  25. echo Ready.
  26.